WCAG 1.4.13: Content on Hover or Focus
Introduction to WCAG 1.4.13: Content on Hover or Focus
WCAG 1.4.13, titled „Content on Hover or Focus,” is a Level AA success criterion introduced in WCAG 2.1. Its primary goal is to ensure that additional content which appears when a user hovers over an element with a mouse or focuses on it with a keyboard (such as tooltips, popovers, or custom menus) is accessible and usable by everyone. This criterion addresses common accessibility barriers associated with dynamically displayed content, ensuring users have sufficient time and means to interact with or dismiss this content.
Why This Criterion Matters
Dynamically displayed content can pose significant challenges for various user groups:
This criterion ensures that such content provides a predictable and controllable experience, preventing it from being a barrier to information access or task completion.
Understanding the Success Criterion 1.4.13 Requirements
Success Criterion 1.4.13 mandates three key requirements for content triggered by hover or focus, unless the content conveys an input error or is non-essential (e.g., a simple visual effect):
1. Dismissible
The user must be able to easily dismiss the additional content without moving their pointer or keyboard focus. This typically means providing a mechanism to close the content, such as:
The act of dismissing should not require the user to perform complex movements or to move their pointer/focus away from the triggering element if they are not yet finished interacting with the content.
2. Hoverable / Focusable
If the content is triggered by hovering with a pointer, the user must be able to move their pointer over the additional content without the content disappearing. Similarly, if it’s triggered by focus, the user must be able to move their keyboard focus into the additional content if it contains interactive elements, or simply have it remain visible if it contains only informative content, without the content disappearing. This is crucial for:
3. Persistent
The additional content must remain visible until the user dismisses it, or until the hover/focus trigger is removed and the content is no longer needed (e.g., the user explicitly moved their pointer or focus away from both the trigger and the content). It should not automatically disappear after a set time limit, as this creates a 'race condition’ where users might not have enough time to read or interact with it. This persistence ensures users have ample time to process the information or complete an interaction.
Practical Guidelines for Compliance
To comply with WCAG 1.4.13, consider the following practical guidelines when implementing content that appears on hover or focus:
Examples of Implementation
Correct Implementation: Accessible Tooltip
Incorrect Implementation: Disappearing Tooltip
Reason for incorrectness: The content disappears immediately if the mouse moves off the button, making it impossible to hover over the tooltip itself or interact with it. There is no explicit dismiss mechanism like the Esc key, and it does not satisfy the 'hoverable’ or 'focusable’ criteria.
Best Practices and Common Pitfalls
Best Practices:
Common Pitfalls:
Conclusion
Adhering to WCAG 1.4.13 is vital for creating inclusive web experiences. By ensuring that content appearing on hover or focus is dismissible, hoverable/focusable, and persistent, you empower a wider range of users, including those with motor, cognitive, and visual impairments, to access and interact with your website’s content effectively. Proactive design and development with these principles in mind lead to a more robust and user-friendly web.
Related posts
- WCAG 5.2.3: Complete processes
- WCAG 5.2.4: Only Accessibility-Supported Ways of Using Technologies
- WCAG 5.2.5: Non-Interference
- WCAG 5.3.1: Required elements of the conformity declaration
- WCAG 5.3.2: Optional Components of a Conformance Claim
Still looking for answers?
Ask our experts using online chat