Daily Accessibility ReviewMultiple <h1> Elements on Homepage — Improper Heading Hierarchy #17836
Unanswered
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
The Rancher Dashboard homepage renders two
<h1>elements simultaneously: one for "Welcome to Rancher" (fromBannerGraphic.vue) and one for "Clusters" (fromhome.vue). This violates best practice for heading hierarchy and breaks assistive technology navigation.WCAG 2.2 Reference
<h1>as the primary page title, with subsequent headings using<h2>,<h3>, etc. in a logical order.Screen reader users commonly use headings to navigate page sections. Multiple
<h1>elements cause confusion about the page's primary subject.Affected Files
shell/components/BannerGraphic.vue(renders the first<h1>):shell/pages/home.vue(renders the second<h1>for the Clusters table):Recommended Fix
The "Clusters" section heading inside the table should be demoted to
<h2>(and the "Welcome to Rancher" banner heading kept as the single<h1>), or the banner title should use a styled<div>or<p>so that the "Clusters" heading can serve as the primary<h1>. Consistent heading hierarchy should be maintained throughout all pages.Other pages also use multiple
<h1>elements (e.g.,shell/pages/c/_cluster/explorer/index.vue), so a broader audit of heading levels across all pages is recommended.Beta Was this translation helpful? Give feedback.
All reactions