Accessibility problem with layout_paragraphs 2.x when inserting media via modal within modal

Created on 27 September 2022, almost 2 years ago
Updated 30 January 2024, 5 months ago

We're loving layout_paragraphs in the LocalGov Drupal distribution, thanks for all your work on it. We've been using the 1.x branch and are now moving to the 2.x branch and have been testing the user experience and accessibility with councils in the UK and would like to help fix a a few important issues.

I've tested this on the 1.x branch and it isn't an issue there.

Problem/Motivation

When you have a paragraph with a Media field, using Media Library, the keyboard focus does not move to the "Add or select media" modal.

This makes it impossible for keyboard-only users to add a media item to a paragraph within a layout_paragraph section.

Steps to reproduce

Assumptions
- A paragraph with a media field exists, and the form display is set to Media Library

  1. Add a new piece of content
  2. Add a new Section, choose a layout
  3. Add an Image paragraph to the new section. Focus is moved to the new modal.
  4. Click "Add media" - the focus is not moved to the the "Add or select media" modal.
πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom maria.y

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.

  • First commit to issue fork.
Production build 0.69.0 2024