Manage display "Default" has inconsistent markup & two paths in admin UI

Created on 18 April 2017, over 7 years ago
Updated 14 February 2024, 7 months ago

Problem/Motivation

A subtle but confusing problem in the administrative UI occurs when moving between different view modes.

If you are working with 'event' content type, sometimes you end up at this URL, for example after saving your settings:
/admin/structure/types/manage/event/display/default

If you actually click on "default" then the path changes and then there appears an underline because is-active class is on the li.tabs__tab and the tab anchor (which is how the first url *should* look)
/admin/structure/types/manage/event/display

For novice users it is not obvious that these are actually the same administrative panel.

Tagging #2186359: The "Manage display" tab label when editing an entity should be "Manage displays" (plural) instead. โ†’ as related because it is another UI problem in this area.

Steps to reproduce

  1. Install Drupal 9.5.x
  2. Choose normal install profile
  3. Go to /admin/structure/types/manage/article/display
  4. Notice that the Default tab is highlighted as active
  5. Now visit /admin/structure/types/manage/article/display/default
  6. Notice that none of the tabs is highlighted as active, despite viewing the screen for the default view mode settings

Proposed resolution

Even if they have different URLs they should have the same markup.

User interface changes

There should be an underline added via is-active class is on the li.tabs__tab and the tab anchor at /admin/structure/types/manage/[contenttype]/display/default

๐Ÿ› Bug report
Status

Needs work

Version

11.0 ๐Ÿ”ฅ

Component
Fieldย  โ†’

Last updated 1 day ago

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States HongPong Philadelphia

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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