Search code examples
autodesk-forgeautodesk-viewerautodesk

Is there a way to make setTooltip() case sensitive


When using Button.setToolTip("The quick brown fox jumps over the lazy dog") with Sentence case. The button text displays as Start case "The Quick Brown Fox Jumps Over The Lazy Dog". Is there a way to change the case?


Solution

  • To achieve what you want is to unset the text-transform style text-transform: capitalize; of the tooltip. Add the below CSS style to your site CSS file after Forge Viewer's.

    .adsk-viewing-viewer.dark-theme .adsk-control-tooltip {
        text-transform: unset;
    }