Template nav element has an unnecessary navigation role

Created on 16 March 2023, almost 2 years ago
Updated 29 June 2023, over 1 year ago

Problem/Motivation

The toc template file toc-js.html.twig has the navigation tag
<nav role="navigation" aria-label="{{ title }}"></nav>

The role navigation is not needed there because the nav tag itself carries the same semantic meaning.

See for example: https://rocketvalidator.com/html-validation/the-navigation-role-is-unnec...

This is an accessibility issue for the element.

Proposed resolution

Remove the unneeded role and leave just the nav element.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇫🇮Finland heikkiy Oulu

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

Comments & Activities

Production build 0.71.5 2024