[UI Components] Button component should support tooltip display #11
Labels
status: discussing
Under discussion threads. Closed as stale after 60 days of inactivity.
type: feature request
New feature or request
Description
I think the Button component should support tooltip display. This helps communicate the purpose of the button better when the button content is only an icon.
Some usages in /learn are:
Implementation notes
Tooltip
fromradix-ui
as a building block, and style the tooltip following our style guide (and we will need a design for this). Link to the doc: https://www.radix-ui.com/primitives/docs/components/tooltip.Button
should accept a tooltip text as a prop. But we need to consider howtooltip
would interact witharia-label
if both are specified, having screen readers announcing both text might be excessive.Expected behavior
tooltip
prop is optional if the button has text contenttooltip
prop is required if the button has icon-only contentaria-label
is not specified, the value ofaria-label
is thetooltip
text (?)tooltip
andaria-label
are specified, display the tooltip for sighted users but hide it from non-sighted users (?)The text was updated successfully, but these errors were encountered: