Some HTML elements have redundant ARIA roles
Created by: metamoni
- What were you trying to do?
I noticed that the
header
in the index view has a redundantrole
property. There are otherheader
elements that have the same issue, as well as amain
with a redundantrole="main"
, anav
withrole="navigation"
and ath
that has arole="columnheader"
.
<header class="main-content__header" role="banner">
While this doesn't cause any technical issues, it's bad practice and it encourages other developers to follow the same pattern.
A list of all implicit roles is available here: ARIA in HTML
-
What did you end up with (logs, or, even better, example apps are great!)? N/A
-
What versions are you running?
- Rails: 7.0.2.3
- administrate: 0.17.0