Prevent a selected menu item from jumping out of the viewport

Created on 20 October 2023, about 1 year ago
Updated 6 March 2024, 9 months ago

Problem/Motivation

When a collapsible menu item below an already expanded collapsible item is clicked, a part or even the complete subnavigation is pushed out of the visible area. (See attached videos.)

Since the focus is still on the selected item, even though it is no longer visible, this is confusing for the users, regardless of whether they are using the mouse or the keyboard.

Proposed resolution

Solution 1

After the click - in case the menu would be pushed out of the viewport - the selected menu item scrolls animated into view.

Solution 2

When expanding a collapsible, other expanded collapsibles are not automatically closed.

📌 Task
Status

Fixed

Version

1.0

Component

User interface

Created by

🇨🇭Switzerland christophdubach

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

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

  • 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

Production build 0.71.5 2024