[1.0.2] Active trail in side_menu's 3rd level

Created on 3 September 2024, 4 months ago
Updated 9 September 2024, 4 months ago

The pattern was left uncorrected. I'll push a new correction.

Problem/Motivation

Following issue #3375273 🐛 [beta4] Missing active trail inside side menu pattern Fixed .
We're missing the desired markup on level 3 items.

Steps to reproduce

  1. In the side menu preview, move the in_active_trail option to a menu with 3 levels:
            - title: Home
              url: "/"
            - title: Library
              url: "#"
              below:
                - title: Library Sub 1
                  url: "#"
                - title: Library Sub 2
                  url: "#"
            - title: Data
              url: "#"
              in_active_trail: true
              below:
                - title: Data Sub 1
                  url: "#"
                  below:
                    - title: Data Sub 1.1
                      url: "#"
                    - title: Data Sub 1.2
                      url: "#"
                - title: Data Sub 2
                  url: "#"
                  in_active_trail: true
                  below:
                    - title: Data Sub 2.1
                      url: "#"
                    - title: Data Sub 2.2
                      url: "#"
                      in_active_trail: true
    
  2. In the preview page, open accordions "Data" (lvl 1) and "Data Sub 2" (lvl 2).
  3. Observe the missing styles and markup on the last item, "Data Sub 2.2".

Proposed resolution

Fix side menu pattern Twig file, add the active trail mode to a level 3 item.

🐛 Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

🇫🇷France spryah

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024