Improve Accessibility of readmore widget

Created on 20 November 2024, 5 months ago

Problem/Motivation

I believe the following items should be addressed:

  1. The toggler should have an aria-controls attribute that connects it with the readmore wrapper. See MDN Web Docs, aria-controls
  2. When the readmore wrapper is opened, the user's focus should be shifted to the first newly exposed element, which is before the toggler. The views_show_more module does something like this, see views_showmore.js, ~ line 132. But rather than looking for a focusable element, I think we should focus directly to the first element.
  3. When the readmore wrapper is closed, the user's focus should remain on the toggle.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States sonfd Portland, ME

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024