-
Notifications
You must be signed in to change notification settings - Fork 410
Description
Issue 1:
ARIA:
https://www.w3.org/TR/wai-aria-practices-1.1/#tooltip
If the tooltip is invoked when the trigger element receives focus, then it is dismissed when it no longer has focus (onBlur). If the tooltip is invoked with mouseIn, then it is dismissed with on mouseOut.
WCAG 2.1
https://www.w3.org/TR/WCAG21/#content-on-hover-or-focus
If pointer hover can trigger the additional content, then the pointer can be moved over the additional content without the additional content disappearing.
The additional content remains visible until the hover or focus trigger is removed, the user dismisses it, or its information is no longer valid.
In the ARIA spec it is the triggering element (link/button) only that controls the show/hide of the tooltip content (additional content). This conflicts with the WCAG spec where focus needs to encompass the trigger and additional content.
Issue 2:
https://www.w3.org/WAI/WCAG21/Understanding/content-on-hover-or-focus.html
As I understand it role=tooltip does not allow active embedded elements, however, the WCAG 2.1 spec stats:
Provide a mechanism to easily dismiss the additional content, such as by pressing Escape or selecting a close button.
Metadata
Metadata
Labels
Type
Projects
Status