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

Docs: Add a callout about accessibility on tooltips hiding important content #2021

Merged
merged 7 commits into from
Jun 12, 2023
4 changes: 4 additions & 0 deletions site/content/docs/5.3/components/tooltips.md
julien-deramond marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ With an SVG:
<span class="visually-hidden">Helper</span>
</button>
```
## Accessibility
louismaximepiton marked this conversation as resolved.
Show resolved Hide resolved
For accessibility purpose, [content on hover or focus should be dismissible, hoverable and persistent](https://www.w3.org/WAI/WCAG21/Understanding/content-on-hover-or-focus.html).
With Boosted tooltips, no mechanism is available to dismiss the tooltip without moving pointer hover or keyboard focus (due to Popper library's limitations).
So, developers should pay attention that the tooltip never hides an important content.
hannahiss marked this conversation as resolved.
Show resolved Hide resolved

## CSS

Expand Down