Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tooltip): use standard visually-hidden class in closeMode=hide #1199

Conversation

gcornut
Copy link
Member

@gcornut gcornut commented Oct 9, 2024

General summary

Use the standard visually-hidden class on Tooltip closeMode=hide instead of a custom class

Test scenarios

Tooltip closeMode=hide

  • should correctly open/close on mouse hover or focus
  • tooltip label should be announced by screen readers

StoryBook: https://4b71eb32--5fbfb1d508c0520021560f10.chromatic.com/ (Chromatic build) ⚠️ Outdated commit

@gcornut
Copy link
Member Author

gcornut commented Oct 9, 2024

Test OK
in closeMode=hide
The tooltip open/closes normally ✔️ (hidden and not unmounted)
The tooltip label is announced by screen readers ✔️
in the default closeMode
No change, the tooltip open/close via mount/unmount ✔️

@gcornut gcornut force-pushed the feat_tooltip_use_standard_visually-hidden_class_in_closemode_hide branch from 4b71eb3 to f910b01 Compare October 9, 2024 13:18
@gcornut gcornut merged commit f166e93 into master Oct 9, 2024
7 checks passed
@gcornut gcornut deleted the feat_tooltip_use_standard_visually-hidden_class_in_closemode_hide branch October 9, 2024 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants