Skip to content

Possible conflict between role tooltip and WCAG 2.1 Success Criterion 1.4.13 Content on Hover or Focus #811

@LaurenceRLewis

Description

@LaurenceRLewis

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

FeedbackIssue raised by or for collecting input from people outside APG task forcePattern PageRelated to a page documenting a PatternquestionIssue asking a question

Type

No type

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions