Daily Accessibility ReviewMultiple H1 headings break heading hierarchy on Settings and Home pages #17796
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
Multiple pages in Rancher Dashboard use more than one
<h1>element, breaking the document heading hierarchy and creating a confusing experience for screen reader users.WCAG 2.2 Violations
Issue 1: Settings Page —
shell/components/Setting.vueThe Global Settings page (
/c/local/settings) renders every individual setting card using<h1>for the setting ID and<h2>for its description. With dozens of settings on the page, screen reader users encounter dozens of<h1>elements.Relevant Code (
shell/components/Setting.vue, lines 27–38)What screen readers see
Suggested Fix
Use
<h2>for each setting name and<p>(or<h3>) for its description:Issue 2: Home Page —
shell/pages/home.vueThe home page contains two
<h1>elements: "Welcome to Rancher" (from the banner graphic) and "Clusters" (from the clusters table header).Relevant Code (
shell/pages/home.vue, lines 488 and 644)Both occurrences are
<h1>. The page already has a "Welcome to Rancher"<h1>fromBannerGraphic, so the cluster table heading should be<h2>.Suggested Fix
Change both occurrences of
<h1 class="mb-0">inhome.vue(lines 488 and 644) to<h2 class="mb-0">.Steps to Reproduce
/dashboard/c/local/settingsand inspect the DOM headings./dashboard/homeand inspect the DOM headings.Hto cycle through headings — you will hear many<h1>items instead of a logical hierarchy.Beta Was this translation helpful? Give feedback.
All reactions