Closed spburtsev closed 8 months ago
Released in v0.84.0.
Example in docs.
It's as simple as adding an iconDescription
to complement the icon.
<HeaderGlobalAction
iconDescription="Settings"
icon={SettingsAdjust}
/>
Adjust the tooltip alignment using the tooltipAlignment
prop. Default value is "center"
. Other values can be "start"
or "end"
.
<HeaderGlobalAction
iconDescription="Settings"
icon={SettingsAdjust}
tooltipAlignment="start"
/>
Currently, adding tooltips to the HeaderGlobalAction component is a bit cumbersome due to its reliance on the native button element. To improve this functionality, I propose using the Button component instead, as it natively supports tooltips and aligns with the approach taken in @carbon/react.