umbraco / Umbraco-CMS.Accessibility.Issues

6 stars 1 forks source link

Welcome to Umbraco modal - Revealing content focus order #4

Open nul800sebastiaan opened 2 years ago

nul800sebastiaan commented 2 years ago

Steps to replicate:

  1. Login to back office (with a new user)
  2. Opening modal displays on load
  3. Next tab keyboard entry does not go to the open modal

Issue: Revealing content: Activating a component that reveals hidden content must move input focus into the revealed content

Why it matters: When a keyboard user activates a control (such as a button) that reveals previously hidden content (such as a menu or dialog), they must be able to navigate quickly and easily into the revealed content.

How to fix: When the user reveals hidden content, move input focus into the revealed content. In most cases, focus should move to the first focusable element in the dialog.

However, if the revealed content is a dialog, certain circumstances might warrant moving focus to a different element:

W3 reference: https://www.w3.org/WAI/WCAG21/Understanding/focus-order.html