Skip to content

fix(site/src): mark visual headings up as headings - #32136

Merged
aqandrew merged 3 commits into
mainfrom
a11y/semantic-heading
Nov 13, 2026
Merged

aqandrew merged 3 commits into
mainfrom
a11y/semantic-heading

Conversation

@aqandrew

@aqandrew aqandrew commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Text that looks and acts like a section heading was a span, p, or table-cell text, so screen reader users could not see it in the heading outline or jump to it. This changes each one to a real h2/h3, at the level Deque suggested. The only added classes (m-0, a size class) cancel the base-layer heading margin, size, and weight rules in site/src/index.css, so the page looks the same. Computed font size, weight, line height, margin, and box match main for every changed element in Storybook, so there are no screenshots.

Closes DEQ-93
Closes DEQ-161
Closes DEQ-257
Closes DEQ-328
Closes DEQ-453
Closes DEQ-455
Closes DEQ-333

Ticket UI surface Element Level
DEQ-93 Audit log (also Connection log and template Versions, which share TimelineDateRow) date group rows ("Today", "last Friday") h3
DEQ-161 Workspaces list, sharing tooltip "Workspace permissions" h2
DEQ-257 Deployment settings OptionsTable (Overview and the other settings pages) option names ("Access URL", "Experiments") h3
DEQ-328 Workspace page sidebars (FullPageLayout SidebarCaption) "Resources", "History" h2
DEQ-453 Create template, base template step "Alternatives to create a template:" h2
DEQ-455 Notifications inbox popover "Inbox" h2
DEQ-333 Agents chat top bar (ChatTopBar) current chat title h2

The build page has its own copy of SidebarCaption ("Builds") with the same pattern. It gets the same h2 change.

DEQ-130 (emoji picker category labels) is not in this PR. See the decision log.

Grouping and decision log
  • One PR for the whole semantic-heading label (one rule, one PR across the product). DEQ-333 was added in a second commit after it got agent-ok. Its h2 matches the Agents sidebar section headers, which are already h2.
  • DEQ-130 left open. Frimousse renders category headers inside its role="grid". A bare h2 there triggers axe aria-required-children (critical). Wrapping it as row > gridcell > h2 passes axe, but those rows are outside Frimousse's aria-rowcount/aria-rowindex numbering and keyboard model, and Biome flags them (useFocusableInteractive). A correct fix needs Frimousse to count header rows (a patch or upstream change), or the headings rendered outside the grid. The ticket is commented, unassigned, and back in Open.
  • Heading levels follow each ticket's suggestion. On deployment Overview, the option-name h3s follow the page's existing h1 then h3 ("User Engagement"). axe heading-order reports that same node on main.
  • axe-core 4.11 on the affected stories, branch vs main: no violation added. The remaining violations exist on main too: aria-dialog-name on the Inbox popover, scrollable-region-focusable on the sharing tooltip list and build logs, link-in-text-block on Overview and Template builder, and button-name on History sidebar loading items.
  • Dropped review findings:
    • SD2, "the children destructure in FullPageLayout/Sidebar.tsx is redundant": oxlint jsx-a11y/heading-has-content fails on <h2 {...props} /> without it.
    • RO1, "use TooltipTitle for the sharing tooltip title": TooltipTitle is a p shared by more than 20 tooltips and is styled differently (mb-1, no text-sm). Making it a heading would change all of them, so it belongs in its own PR.
    • SD4 (nit), "the build page SidebarCaption ignores className": this predates the PR, and no caller passes one. Left out to keep the PR scoped.

🤖 Generated by Coder Agents on behalf of @aqandrew.

@aqandrew
aqandrew temporarily deployed to main November 12, 2026 22:18 — with GitHub Actions Inactive
@aqandrew
aqandrew temporarily deployed to main November 12, 2026 22:18 — with GitHub Actions Inactive
@linear-code

linear-code Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

@aqandrew
aqandrew marked this pull request as ready for review November 12, 2026 22:30
@aqandrew
aqandrew temporarily deployed to main November 12, 2026 22:30 — with GitHub Actions Inactive
@aqandrew
aqandrew requested a review from a team as a code owner November 13, 2026 17:48
@aqandrew
aqandrew marked this pull request as draft November 13, 2026 17:48
@aqandrew
aqandrew temporarily deployed to main November 13, 2026 17:48 — with GitHub Actions Inactive
@aqandrew
aqandrew marked this pull request as ready for review November 13, 2026 17:59
@aqandrew
aqandrew temporarily deployed to main November 13, 2026 17:59 — with GitHub Actions Inactive
@aqandrew
aqandrew temporarily deployed to main November 13, 2026 18:42 — with GitHub Actions Inactive

@Jesswinters Jesswinters left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Semantic headings ftw! ✨

@aqandrew
aqandrew merged commit 65c6b4b into main Nov 13, 2026
27 checks passed
@aqandrew
aqandrew deleted the a11y/semantic-heading branch November 13, 2026 19:04
@aqandrew
aqandrew temporarily deployed to main November 13, 2026 19:04 — with GitHub Actions Inactive
@aqandrew
aqandrew temporarily deployed to docs-preview November 13, 2026 19:04 — with GitHub Actions Inactive
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 13, 2026

This branch was previously deployed

2 inactive deployments
docs-preview — a728d3be Deployed Nov 13, 2026 by aqandrew via cleanup #50
main — a728d3be Deployed Nov 13, 2026 by aqandrew via cla #256939
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants