umbraco / Umbraco-CMS.Accessibility.Issues

6 stars 1 forks source link

Help overlay - missing modal trap #22

Open umbrabot opened 2 years ago

umbrabot commented 2 years ago

Steps to replicate:

  1. Open help modal in the top navigation (top right)
  2. Modal will appear (modal is missing modal trap)

Issue: Modal dialogs: Users must not be able to Tab away from a modal dialog without explicitly dismissing it

Why it matters: The purpose of a modal dialog is to constrain user input (temporarily) to controls within the dialog. Just as mouse users should not be able to click elements outside the dialog, keyboard users should not be able to Tab to elements outside the dialog.

How to fix:

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