Mobile menu expanded and active items

Created on 20 March 2023, over 1 year ago
Updated 13 November 2023, 8 months ago

Problem/Motivation

I've noticed that a while back, the mobile_menu region was done away with, which along with losing the ability independanty theme it, there seems to be issues with having the current section be opened, and with the active trail being set correctly.

For example, If I have a section "About" and within it, there is a page "Directors" usa-current not added to the classes of the menu items. On the same page, when viewing on mobile, aria-expanded is set to false, and again, usa-current is nowhere to be found. The standard Drupal is-active class is there.

Using the same menu (with dropdowns) for desktop and mobile can be an issue. On mobile, we actually do want the section to be expanded.

I based my findings against a stock install of the theme and this page https://designsystem.digital.gov/components/overview/ as it is a second level page. I am wondering if anyone else has ran into this?

Our project is still using 2.x but I tested this with 3.x and the result is the same. Right now it seems to me the only way to resolve this is to bring back the mobile region, with a modified template for mobile, along with fixing usa-current.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

3.4

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States devkinetic

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024