You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 42cffe6
Browse filesBrowse the repository at this point in the historyBrowse files
fix(web): repair heading levels and landmark structure
A screen reader's heading outline is a navigation aid, and three index
screens broke it by jumping h1 -> h3: the card components render h3, which
is correct where those cards sit under a section h2 (TagDetail, Home,
Volunteer) but leaves a gap on the index screens. Rather than change a shared
card and break it in its other homes, each index gains an sr-only h2 over its
results region — the grid genuinely is a section. ProjectsIndex was checked
and does not have the defect; ProjectCard already renders h2.
The detail-screen aside headings go h3 -> h2 directly. They sit under the
screen h1 with nothing between, are used nowhere else, and keep their classes
so nothing moves: heading level and visual size are independent.
PersonCard wrapped the entire card in one <a>, so its accessible name was the
avatar title, the name, the project count and every tag chip concatenated
into one string. Restructured to the ProjectCard idiom with a stretched
pseudo-element so the whole card stays clickable.
The header's navs rendered bare links; a nav without a list does not tell you
how many destinations it has. Both are now ul/li matching AppFooter, with the
mobile sheet's three groups as three lists so the separators and the About
heading are not list children. That "About" label was a styled <p>; it is now
an h3, one level under the SheetTitle that Radix renders as an h2.
HelpWantedIndex wrapped FacetSidebar — which renders its own labelled aside —
in a second bare <aside>, nesting two complementary landmarks with the outer
one unnamed. The outer element is now a div.
Result-count badges move out of the h1 on all three index screens: a heading
whose accessible name changes on every keystroke is not a stable landmark.
The two GitHub links in this file also pick up their new-tab cues here rather
than splitting one file's edits across two commits.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
0 commit comments