Expand my Community achievements bar.

SOLVED

Change the tooltip to match text rather than title

Avatar

Level 2

<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.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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.

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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.