Disabled Views display tabs have no visual indication of their state

Created on 4 May 2023, over 1 year ago
Updated 25 January 2024, 11 months ago

Problem/Motivation

Disabling a Views display and moving away to another display doesn't provide any immediate indication on the display tabs that it is disabled. The UI form itself (below) shows the state (perhaps as per https://www.drupal.org/project/drupal/issues/2001094 โ†’ ).

On a base Drupal10 install I can't see any style based reference against the views-display-disabled-link class that is provided by ./core/modules/views_ui/src/ViewFormBase.php (https://git.drupalcode.org/project/drupal/-/blob/10.1.x/core/modules/vie...)

Steps to reproduce

Create/edit a view with multiple displays. Disable one of them, move to another display. Notice the disabled display has no visual change to the tab.

In the screenshot below, the first display "Published comments" is disabled:

Proposed resolution

Provide styling against the views-display-disabled-link class that resolves this. Make its opacity to 0.5 to make it look disabled then the rest of the tabs And presumably this will need to flood across all default themes shipped with Drupal core - Stark, Olivero and Claro?

And while doing this we are fixing this visually we should also add some indication for screen readers that a tab is disabled, and an automated test to make sure the new text is shown.

๐Ÿ› Bug report
Status

Needs work

Version

11.0 ๐Ÿ”ฅ

Component
Views UIย  โ†’

Last updated 13 days ago

Created by

๐Ÿ‡ณ๐Ÿ‡ฟNew Zealand chroid

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

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

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.71.5 2024