Change the tooltip to match text rather than title | Community
Skip to main content
Level 2
November 14, 2022
Solved

Change the tooltip to match text rather than title

  • November 14, 2022
  • 1 reply
  • 649 views

<publish

     granite:title="Publish Page"

     jcr:primaryType="nt:unstructured"

     sling:resourceType="granite/ui/components/coral/foundation/button"

    text="Stage Page"

</publish?

 

We have a requirement to change the tooltip to match the text. Is it possible to change without editing the title? The title currently identifies the button that we renamed.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by lukasz-m

Hi @micoh,

It looks that value of granite:title property is used in html title attribute of html button element. So if you'd like to change the text that is presented as a hint, changing value of granite:title is way to go. I do not see any other option.

1 reply

lukasz-m
Community Advisor
lukasz-mCommunity AdvisorAccepted solution
Community Advisor
November 27, 2022

Hi @micoh,

It looks that value of granite:title property is used in html title attribute of html button element. So if you'd like to change the text that is presented as a hint, changing value of granite:title is way to go. I do not see any other option.