Webform element details toggle can leave elements in wrong aria-expanded state

Created on 16 April 2024, 2 months ago
Updated 30 April 2024, about 2 months ago

Problem/Motivation

The webform.element.details.toggle.js library can leave summary elements in the wrong aria-expanded state.

Steps to reproduce

  1. Add a few details elements to a webform that are collapsed by default
  2. Observe that the summary elements are all aria-expanded="false"
  3. Visit the webform and click the Expand all button.
  4. Observe that the summary elements are still aria-expanded="false" even though the open attribute on the details element is now set.

Proposed resolution

Toggle the aria-expanded state in webform.element.details.toggle.js to match the details open state.

Remaining tasks

  1. Open a merge request
  2. Review
  3. Commit

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Fixed

Version

6.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Luke.Leber Pennsylvania

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024