Skip to content

fix(site/src/modules/workspaces/WorkspaceTiming): keep only list items in timeline breadcrumbs - #31942

Merged
bartekgatzcoder merged 1 commit into
mainfrom
a11y/list
Nov 10, 2026
Merged

bartekgatzcoder merged 1 commit into
mainfrom
a11y/list

Conversation

@jeremyruppel

Copy link
Copy Markdown
Collaborator

The build timeline's drill-down breadcrumb (ChartBreadcrumbs) rendered its chevron separators as <li role="presentation"> children of the <ul>, which fails the axe list rule (WCAG 1.3.1).

The chevron now sits inside the preceding crumb's <li>, so the list holds only real items. Lucide icons render aria-hidden="true" by default, so screen readers announce a two-item list, the same as before minus the invalid child.

Closes DEQ-10
Closes DEQ-74
Closes DEQ-470

Ticket UI surface
DEQ-10 Build timeline, provisioning > apply drill-down breadcrumb
DEQ-74 Build timeline, provisioning > plan drill-down breadcrumb
DEQ-470 Build timeline, agent > connect drill-down breadcrumb

No screenshots: the change is DOM-only. Before and after captures of NavigateToPlanStage and NavigateToStartStage (dark and light) are byte-identical.

Verification: axe-core 4.11 on those two stories reports list (serious) on .w-(--y-axis-width) on main and no list violation on this branch, in both themes.

Dropped review findings:

  • A Vitest test asserting the list's children were all list items was dropped. It needed DOM traversal (closest("ul"), .children), which FE10 and TS2/TS5 flag, and a presentation li is invisible to role queries, so no compliant rewrite exists. The axe check above is the verification.
Grouping and decision log
  • All three tickets point at the same element (ul.w-[var(--y-axis-width)]) with the same message ("direct children that are not allowed: [role=presentation]"), reached through different stages. One root cause, one PR.
  • The shared components/Breadcrumb primitive was not reused: it is a <nav> of router links, while these crumbs are in-chart buttons, and its BreadcrumbSeparator also uses <li role="presentation"> (it adds aria-hidden="true", so axe skips it).
  • Moved the chevron into the crumb's <li> rather than adding aria-hidden to the separator, so the list holds only list items with no presentation-role workaround.
  • Dropped the React default import: its only value use was React.Fragment; React.FC/React.HTMLProps resolve through the @types/react global namespace, as in most of site/src.
  • size-[14px] became size-3.5 (same 14px) per deep-review SA1.
  • Self-review: frontend-review FE1 to FE10 pass; frontend-deep-review has no blocking or should-fix findings left; frontend-accessibility list passes, and the remaining story-level page rules (region, landmark-one-main, page-has-heading-one) are out of scope.
  • Pre-existing note: the back crumb button has no custom focus-visible style.

🤖 Generated by Coder Agents on behalf of @jeremyruppel.

@jeremyruppel
jeremyruppel temporarily deployed to main November 9, 2026 22:09 — with GitHub Actions Inactive
@jeremyruppel
jeremyruppel temporarily deployed to main November 9, 2026 22:09 — with GitHub Actions Inactive
@linear-code

linear-code Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

DEQ-74

DEQ-10

DEQ-470

jakehwll pushed a commit that referenced this pull request Nov 10, 2026
…er picking a preset (#31943)

`UsersPage > stores a picked preset in the filter as relative values`
fails on `main` since #29809, and blocks `test-js` on every `site/` PR
(for example #31942).

The test waits for `router.state` to hold the new filter, then
synchronously queries the trigger for its "Over 30 days" label. The data
router updates its state before React commits the re-render, so the
query can run while the trigger still shows the "Last seen" placeholder.
The fix awaits the label with `findByRole`. No product change; the label
does render.

Verified: the test fails consistently on `main` locally and in CI, and
passes 5 of 5 runs with this change.

🤖 Generated by Coder Agents on behalf of @jeremyruppel.
@jeremyruppel
jeremyruppel temporarily deployed to main November 10, 2026 14:02 — with GitHub Actions Inactive
@jeremyruppel
jeremyruppel marked this pull request as ready for review November 10, 2026 14:54
@jeremyruppel
jeremyruppel temporarily deployed to main November 10, 2026 14:54 — with GitHub Actions Inactive

@bartekgatzcoder bartekgatzcoder left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Moves the timeline breadcrumb chevron into the preceding crumb's <li>, so the <ul> holds only list items. I verified in Storybook (NavigateToPlanStage, NavigateToStartStage, dark and light) that axe list/listitem pass, the chevron SVG is aria-hidden, and the back crumb stays keyboard reachable. Nit (pre-existing, optional): the i === 0 class toggle on the <li> could be first:text-content-secondary. No follow-ups filed.

🤖 Generated by Coder Agents on behalf of @bartekgatzcoder.

@bartekgatzcoder
bartekgatzcoder merged commit ac9a4d9 into main Nov 10, 2026
32 of 33 checks passed
@bartekgatzcoder
bartekgatzcoder deleted the a11y/list branch November 10, 2026 16:18
@bartekgatzcoder
bartekgatzcoder temporarily deployed to main November 10, 2026 16:18 — with GitHub Actions Inactive
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 10, 2026

This branch was previously deployed

1 inactive deployment
main — 869b9593 Deployed Nov 10, 2026 by bartekgatzcoder via cla #253531
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