Rivet - expand children of current page in sidenav

Created on 25 July 2024, 4 months ago
Updated 12 August 2024, 3 months ago

Problem/Motivation

Currently the children of the current page are displayed as collapsed in the sidebar.

It would be better to expand the dropdown if the current page has children.

Steps to reproduce

Proposed resolution

We must add the aria-expanded="true" to the item toggle, when the current request path matches the menu link item path.

Typically in drupal, we calculate and add the aria-current="page" via client side JS, but it would be better to add the aria-expanded="true" via server side render of the sidenav Menu block, to avoid having to interact and/or workaround Rivet's own sidenav code to collapse/expand sidenav dropdowns.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇪🇨Ecuador jwilson3

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

Comments & Activities

Production build 0.71.5 2024