Repository navigation
fix(web): expose toggle state and tab names to assistive tech - #19
Merged
Merged
Conversation
A log toolbar toggle only carried an "on" class, so assistive tech could not tell whether
regex, case, only-matches, [orbit], wrap or follow was active. Each toggle now reports
aria-pressed.
The run tabs included the shortcut digit and the count in their accessible name ("Code 3"
was read as "Code 3 5"), so each tab now has an explicit aria-label and the count, live dot
and shortcut hint are hidden from assistive tech.
Event times were rendered in the viewer locale with no zone. The zone now appears once in
the Time header (UTC+8) instead of on every row, which also keeps the table inside a 480px
window; a run whose events cross a zone change still labels each row, and every row keeps
the raw timestamp in its title.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Three accessibility gaps on the run page:
onclass, so assistive tech could not tell whether regex, case, only-matches,[orbit], wrap or follow was active. Each toggle now reportsaria-pressed.Code 3was read as "Code 3 5". Each tab now has an explicitaria-label, and the count, live dot and shortcut hint are hidden from assistive tech.UTC+8) instead of on every row, which also keeps the table inside a 480px window; a run whose events cross a zone change still labels each row, and every row keeps the raw timestamp in itstitle.Validation
Checked in Chrome against a real daemon on
/runs/a1f4c2?tab=logsand?tab=events:aria-pressed, with[orbit]pressed by default.Overview / Logs / Metrics / Artifacts / Code (3) / Trajectory / Events, the current one hasaria-current="page", and the count, dot andKbdarearia-hidden.11月18日 17:00:00 UTC+8withUTC+8in the header, and each row'stitleis the raw timestamp.packages/web/test/a11y.test.tsxcovers the toggles, theutcOffsethelper, the single header label, and the per-row fallback when times span two zones.pnpm verifypasses on CI (ubuntu-24.04 / Node 24.18): https://github.com/zjunlp/Orbit/actions/runs/45004256143/job/137152218311/procand no Docker, so the daemon suite is CI-only).