umbraco / Umbraco-CMS.Accessibility.Issues

6 stars 1 forks source link

Welcome to Umbraco modal - Missing modal trap #6

Open nul800sebastiaan opened 2 years ago

nul800sebastiaan commented 2 years ago

Steps to replicate:

  1. Login to back office (with a clear cache)
  2. Opening modal displays on load (modal trap is missing)

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