Repository navigation
Accessibility drill, round 2: focus, keyboard and announcements - #213
Merged
Merged
Conversation
- Dialog and FocusTrap: Tab walks tabbables in document order and wraps; focus moves into a dialog when it opens. - Select keeps an uncontrolled value and focuses its search field reliably; options show a visible keyboard focus. - InfoTip and other hover triggers open with Enter and Space. - ToggleButton defaults to type="button" with aria-pressed; Button and IconButton set aria-busy while loading. - DropdownWrapper puts the button role on the element that takes focus. - ContextMenu closes on Escape and marks disabled state. - Feedback: danger/warning are alerts, info/success polite status. - LinearGauge and RadialGauge are named meters with unique gradient ids. - Reduced motion: transitions and animations end at once under prefers-reduced-motion; Spinner opts out as essential motion. 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. |
The docs example checker types a snippet with no Once UI import against core, where ThemeProvider has no insets and Column no safeArea, so the docs build on preview went red once both #204 and #206 were in. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_0183UV8SQBGYKctRTFAv64N8
Member
Author
|
Docs build was red for a reason outside this PR. Preview has it red too, ever since #204 (native safe areas) and #206 (example checker) both landed. The checker types the safe-area snippet in The fix is ported here in 2e43146: the snippet now imports Generated by Claude Code |
Merged
30 tasks done
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.
Before: Tab could escape or skip inside dialogs, and opening a dialog left focus behind it. Select options had no visible keyboard focus, and hover tooltips could not be opened from the keyboard. Every Feedback callout was read out as an alert. Gauges were silent to screen readers, and animations ignored the reduced-motion setting.
After: Tab cycles through a dialog in page order, and focus moves into the dialog when it opens. Keyboard focus is visible on options, and InfoTip opens with Enter or Space. Only danger and warning Feedback interrupt. Gauges are named meters. With reduced motion turned on, transitions end at once, but the loading spinner keeps turning.
How: Dialog and FocusTrap share one
nextInTraphelper that skipstabindex="-1". ToggleButton now defaults totype="button"and setsaria-pressed. Button and IconButton setaria-busywhile loading. DropdownWrapper puts the button role on the element that takes focus. ContextMenu closes on Escape. A globalprefers-reduced-motionblock in foundations covers the motion, anddata-motion="essential"lets an element opt out. The new cases are pinned ina11y-drill.test.tsx.Left alone on purpose: Chip without
onClickstays a toggle button. Existing tests pin that, so changing it waits for 3.0.Generated by Claude Code