#107727Tooltips are not shown for keyboard users and on touch devices
Description
Description
The tooltip/title for the icon buttons only shows with hover and not on keyboard focus.
Reproduction steps
- Use the keyboard to navigate to an interactive element with a tooltip
- Tooltip is not shown
Impact
Missing information on icon button function
Target group
Keyboard users and users of touch devices
Severity
High
Frequency
On every page
Definition of Done
Tooltip can be implemented only on interactive elements (defined by semantic role) and which can get keyboard focus. title attributes on non interactive elements must be moved to an interactive element or the element must be made interactive.
Tooltip is shown on keyboard focus.
The visual style of the tooltip should have a good color contrast (Suggestion: AAA Contrast of text <> box larger than 7:1)
Suggestion: border, outline or shadow style has sufficient color contrast, page background <> border <> box background, each larger than 3:1
The minimum text-size of the tooltip is —bs-body-font-size. Currently 9pt (0.75rem), better would be 10.5pt (0.875rem).
The Tooltip content is not cut, instead the tooltip is repositioned or resized when required.
Recommended solution
Use an implementation of the referenced accessible tooltips.
References / WCAG 2.2 Reference
https://www.a11y-collective.com/blog/tooltips-in-web-accessibility/
https://tollwerk.de/projekte/tipps-techniken-inklusiv-barrierefrei/titel-tooltips-toggletips#der-einsatz-von-roletooltip
Acceptance criteria https://www.magentaa11y.com/#/web-criteria/component/tooltip
Maybe a solution can use https://developer.mozilla.org/en-US/docs/Web/API/Popover_API as non-modal popover.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[BUGFIX] Tooltips are not shown for keyboard users and on touch devices Resolves: #107727 Releases: main