Skip to main content
Level 2
Nov 14, 2022 6:58 PM UTC
Solved

Change the tooltip to match text rather than title

<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.
lukasz-m
lukasz-mAccepted solution
Community Advisor
Nov 27, 2022 12:09 PM UTC

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
Nov 27, 2022 12:09 PM UTC

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.

Translate