Understanding WCAG SC 1.4.13 Content on Hover or Focus
Version and Level: 2.1/2.2(Level AA)

Success Criterion 1.4.13 Content on Hover or Focus requires that when additional content becomes visible due to pointer hover or keyboard focus, there must be mechanisms to dismiss, hover over, and ensure persistence of this content. This ensures that users can interact with these elements without losing access to other content.

Benefits:

  1. Better Navigation and User Experience: This means ensuring that additional components such as tooltips or pop-ups do not cause any problems and follow best practices.
  2. Enhanced User Interaction: Allows users to hover over and interact with additional content without it disappearing unintentionally.
  3. Increased Accessibility for Cognitive Disabilities: Ensures that additional content remains visible long enough for users to read and understand it.

Main Objective:

To ensure that additional content activated by hover or focus adheres to three key principles: dismissibility, hoverability, and persistence.

Best Practices:

  • Provide dismissal method for tooltips: If the tooltip or additional content is not an 'input error', or does not obscure or replace other content on the page, then a method to dismiss additional content that appears on hover or keyboard focus is required. This could involve using the Escape key or a close button.

  • Ensure tooltip persistence in transitional areas: If additional content is presented, then ensure that the tooltip does not disappear when the hover moves from the trigger to the tooltip, while it’s in the transitional area.

  • Keep content visible until user action: Make sure the content stays visible until the user moves the pointer away from the triggering element or content block, or until the user decides to dismiss it using one of the provided methods.

  • Exception for "title" tag tooltips: If the tag “title” is used for a tooltip, this means that the practices specified in this criterion do not apply to such content.

Examples & Explanation:

Example 1:Tooltip preview for links

What Should Be Avoided

content-image

Explanation:Without any mechanism available to dismiss the tooltip, the success criterion is failed, and the tooltip message still remains presented.

What Should Be Done

content-image

Explanation:In this case, once the user hovers over the 'create an account' link, the tooltip pops up and blocks the text of the button located underneath. However, the user can dismiss the tooltip by clicking on the ESCAPE key.

Next Up

Expand your understanding with SC 2.1.1 - Keyboard. Learn to ensure keyboard accessibility for all users.

Go to SC 2.1.1