umbraco / Umbraco-CMS.Accessibility.Issues

6 stars 1 forks source link

Help overlay - Revealing content focus order #20

Open umbrabot opened 2 years ago

umbrabot commented 2 years ago

Steps to replicate:

  1. Navigate to Help icon in top navigation
  2. 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