Settings tray focus trap can inadvertently allow escaping of focus

Created on 5 August 2022, about 2 years ago
Updated 23 January 2023, over 1 year ago

This is spawned from πŸ“Œ Refactor Drupal 10 settings tray / off-canvas to use modern CSS Fixed

@andy-blum discovered that it's possible to escape the focus trap within the settings tray.

Steps:

  1. Use layout builder and add a block
  2. Note how you cannot escape focus - when you tab beyond the last item, it goes back to the first item in the focus trap.
  3. However, if you close the very last <details> element and tab beyond that, you can escape focus.

I posed a question in the Drupal #accessibility slack channel on if we even need a focus trap at wide widths (no response yet). Link: https://drupal.slack.com/archives/C2ANFUGGG/p1659703088535919

πŸ› Bug report
Status

Active

Version

10.1 ✨

Component
Settings trayΒ  β†’

Last updated 1 day ago

  • Maintained by
  • πŸ‡ΊπŸ‡ΈUnited States @tedbow
Created by

πŸ‡ΊπŸ‡ΈUnited States mherchel Gainesville, FL, US

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024