Provide better context in accessible names of EntityOperation views plugin drop-button operations

Created on 15 May 2018, over 6 years ago
Updated 18 May 2023, over 1 year ago

Problem/Motivation

Over in #2962110-39: Add the Media Library module to Drupal core , we discovered that there is an accessibility problem with the entity operation drop-buttons exposed by Views. Namely:

The entity operations (dropbutton) links are [a] problem ... users need to know which media item they apply to. Just like bulk-ops checkbox, the dropbuttons currently get context from the HTML table row structure. But in the new grid, the dropbutton is outside of the rendered entity's <article> wrapper.

There's already an issue to address this in EntityListBuilder, but the dropbuttons in the new media library actually come from the EntityOperations views field plugin.

Proposed resolution

Change the EntityOperations plugin so that the label of the entity is embedded in a way that will be visible to assistive technology.

Remaining tasks

Write a patch, write tests, get the accessibility team's blessing, and commit.

User interface changes

Entity operation drop buttons in views may change when seen by screen readers, etc. A Views plugin may receive new administrative UI options.

API changes

None - there is markup change.

Data model changes

None anticipated.

Feature request
Status

Needs work

Version

10.1

Component
Views 

Last updated about 8 hours ago

Created by

🇺🇸United States phenaproxima Massachusetts

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.

  • Needs change record

    A change record needs to be drafted before an issue is committed. Note: Change records used to be called change notifications.

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