Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 296210

Disabled Views display tabs have no visual indication of their state

$
0
0

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. In the past I think we've seen a simple 'strikethrough', would that suffice in the first instance? And presumably this will need to flood across all default themes shipped with Drupal core - Stark, Olivero and Claro?


Viewing all articles
Browse latest Browse all 296210

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>