Views should provide a means to add arbitrary attributes (such as aria-* attributes) to a view's wrapping element

Created on 13 November 2013, about 11 years ago
Updated 30 May 2023, over 1 year ago

Problem/Motivation

As noted in [#8173385-30], placing aria role attributes on block wrappers is not ideal. Blocks are generic content wrappers. Semantic markers should be as close to the content as possible and in the case of a view, this would be the view wrappers, since a view might be displayed in a block or simply on a page. We want the qualifying semantic markup to be consistent.

Proposed resolution

Just as classes may be added to a view's wrapper, we should extend this to include any arbitrary attribute-value combo.

Remaining tasks

User interface changes

API changes

Related Issues

Original report by @jessebeach β†’

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component
ViewsΒ  β†’

Last updated about 4 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States jessebeach

Live updates comments and jobs are added and updated live.
  • VDC

    Related to the Views in Drupal Core initiative.

  • 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.

Production build 0.71.5 2024