Repository navigation
Accessibility drill, round 1: names, roles and keyboard reach - #207
Merged
Merged
Conversation
axe over every docs page in light and dark found these in core components: - Accordion: a closed panel's links stayed in the tab order behind aria-hidden; the panel is now inert, and its id is unique per accordion instead of a shared "accordion-content". - Avatar: role="img" with no name; the name now sits on the image, including the status. Icon and Skeleton expose an aria-label through a role instead of on a bare element. - ProgressBar: the bar had no name; aria-label lands on it, "Progress" by default. - Setting / SettingAxes: a Slider or Switch inside takes the row's label as its name (new internal ControlLabelContext). - CompareImage: the handle is a keyboard slider (arrows, Page keys, Home/End) instead of a pointer-only, unnamed div. - EmojiPicker: role="grid" with gridcells and no rows became a group of buttons; category tabs are named. - Swiper: dot targets are 24px (WCAG 2.2 target size), dots unchanged. - CodeBlock and Table: scroll containers that overflow are focusable. - Media: YouTube iframes get a title. Input and Textarea fall back to a generated id so a label always reaches the field. - DataTable: its pagination landmark is named after the table. Docs: footer, aside and the home page's main are landmarks; demos for Option, Dropdown, IconButton, EmojiPickerDropdown, FlipFx, Pagination and Breadcrumbs are named; the List example nests lists inside items. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_0183UV8SQBGYKctRTFAv64N8
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_0183UV8SQBGYKctRTFAv64N8
- Swiper's track and SplitView's panels take focus while they overflow, so a keyboard can scroll them. - Feedback's close control is a real button even without onClose; it was a div carrying an aria-label. - Docs: links inside descriptions are underlined (link-in-text-block), the home promo card and the basic Slider demo are named. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_0183UV8SQBGYKctRTFAv64N8
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_0183UV8SQBGYKctRTFAv64N8
Merged
30 tasks done
lorant-one
pushed a commit
that referenced
this pull request
Oct 18, 2026
…areImage, EmojiPicker and Swiper The accessibility thread fixed the same components on preview (#207). Its implementations win; our interaction tests now test them. Keeps one behaviour fix from our side: no stray "undefined" class on a loading Avatar. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01DYxmeZdGfZSDrgUsjiPUvE
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.
Requested by Lorant · project thread
Before: axe (WCAG 2.2 AA + best practice) over all 180 docs pages, light and dark, reported 9,480 failing nodes. The largest: every closed Accordion left its links in the tab order behind
aria-hidden(3,249), Avatars were unnamed images, sliders insideSettinghad no name, CompareImage could only be dragged with a pointer, and EmojiPicker claimed a grid it did not have.After: the same scan reports 3,337, and everything left except 168 nodes is colour contrast (handled in a separate PR). Nothing changes visually except Swiper dots, which keep their size but get 24px hit areas.
How:
inert; panel id is unique per instance (was a sharedaccordion-content).img,status) instead of a bare div/span.aria-label, default "Progress").ControlLabelContext.slider(arrows, Page Up/Down, Home/End).groupof buttons instead of a row-lessgrid; category tabs named.internal/scrollableTabStop).title. Input/Textarea: fall back to a generated id so the label always reaches the field. DataTable: pagination landmark named after the table. Feedback: close control is always a button.Tests: new
a11y-drill.test.tsx(8 cases with axe); full core suite 1,982 passing; typecheck clean; no new Biome errors in touched files.Generated by Claude Code