(Accessibility) Mega menu column has duplicate IDs in the html

Created on 4 October 2023, about 1 year ago
Updated 11 October 2023, about 1 year ago

Problem/Motivation

Having multiple sub menus with the same number of columns is leading to duplicate ids in the html.

Steps to reproduce

Create a mega menu where multiple sub items have the same number of columns. In our project, we have several menus with 4 columns which was causing all of them to have the same id "tb-megamenu-column-5".

Proposed resolution

Sanitize the generated id with Html::getUniqueId, or use another criteria to generate the id of the columns, not the number of cols.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: outdated

Version

3.0

Component

Code

Created by

🇨🇴Colombia sebasgd

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

Comments & Activities

Production build 0.71.5 2024