Hi Themeco team,
we run Pro 6.9.4 on https://www.pixelwerft.de and found an accessibility issue in the menu output.
Pro renders the menu lists with role=“navigation” directly on the
- :
<ul class="x-menu-first-level x-menu x-menu-inline …" role="navigation" …>
<ul class="x-menu x-menu-layered x-current-layer …" role="navigation">
This affects the inline navigation in our header and footer templates as well as the layered menu inside the Off Canvas element. Since it appears on all three menu elements across two templates, it seems to be the default output.
The problem: the explicit role replaces the implicit list role of the <ul>. In the accessibility tree, the <li> children no longer have a list parent. Lighthouse reports “List items (<li>) are not contained within <ul>, <ol> or <menu> parent elements”, which lowers the Accessibility score and also fails the new Lighthouse “Agentic Browsing” category (accessibility for agents). Screen readers no longer announce the menu as a list with a number of items.
Expected behaviour: keep the <ul> as a plain list and place the navigation landmark on a wrapping element, ideally <nav aria-label="…">.
Our current workaround is a small footer script that removes the role attribute from ul.x-menu. It works, but a fix in the theme would be much cleaner – and it matters for everyone who has to meet the European Accessibility Act.
Could you fix this in an upcoming release, or let us know if there is a setting we missed?
Thanks and best regards
Christian Isachsen