The current use of local tasks is confusing to some users

Created on 28 June 2023, over 1 year ago

Problem/Motivation

As part of 📌 Field UI 2023 User Research Fixed , we noticed few challenges related to our use of local tasks:

  1. Few of the test participants navigated to edit fields of an incorrect bundle or even incorrect entity type. When asked, they thought they were editing the entity type or bundle we instructed them to edit. Without knowing the content model of the site, the only indication in the UI that this is not the case is in the breadcrumb
  2. Users don't always understand what's the context for the tabs (especially problematic for the second level). For example, on Manage Display there are "Default" and "Teaser" tabs, and users didn't realize they were view modes.

Nielsen Norman describes this navigation pattern as local navigation. Their definition is following:

Local navigation is a type of navigation that is contextual to the user’s current location — showing sibling pages within the current category, and if applicable, the children or nieces and nephews of the current page.

It also says that:

local navigation indicates the category of the current page and, thus, works as an orientation element.

Currently the only UI element that indicates the category and helps with the orientation is the breadcrumb.

We are also rendering the local tasks as horizontal tabs. The design pattern usually makes people expect it to change content below the tabs, not above it. This is why navigating using Drupal local tasks (rendered as horizontal tabs) feel strange to at least some of the users.

Proposed resolution

Use local task base route for deciding which title should be rendered for a page. We need to figure out how to indicate the correct page title for screen readers because what's being described in 🐛 [regression] Pages Manage Fields, Manage form, Manage display should include name of content type or entity Postponed is probably along the lines of what needs to be rendered for screen readers.

Here's how the pattern looks like on Github.com .

Remaining tasks

Write a prototype patch for this and confirm with user tests that the change is an improvement over the status quo.

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

11.0 🔥

Component
Base 

Last updated 1 day ago

Created by

🇫🇮Finland lauriii Finland

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

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024