CKEditor admin toolbar config buttons using ::before to add content: have invalid screen reader text

Created on 17 March 2022, over 2 years ago
Updated 3 April 2024, 3 months ago

Problem/Motivation

Style, Heading, Language buttons have invalid announcement text when using a screen reader

example:

Steps to reproduce

- enable voice over (or other screen reader)
- tab to Style, Heading, Language buttons
- buttons are announce as "headingactive button heading"
- it's expected to be announced as "active button Heading"

Proposed resolution

- this issue exists because config screen displays faux-buttons for CKEditor and uses ::before CSS pseudo-element to display the name of the button with `content` property
- rendered CKEditor buttons don't have this issue
- Follow this recommendation from W3C to resolve the issue: https://www.w3.org/TR/css-content-3/#alt

Remaining tasks

- MR ready for review

User interface changes

- none

API changes

- none

Data model changes

- none

Release notes snippet

- Updated CSS property `content` for faux-buttons on CKEditor 5 toolbar config admin page to make sure screen reader text is valid

🐛 Bug report
Status

Fixed

Version

10.2

Component
CKEditor 5 

Last updated about 4 hours ago

Created by

🇺🇸United States bnjmnm Ann Arbor, MI

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

Not all content is available!

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

Production build 0.69.0 2024