Repository navigation
feat(renderer): add aria state props - #865
Open
patrickkabwe wants to merge 1 commit into
Open
patrickkabwe wants to merge 1 commit into
patrickkabwe wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
patrickkabwe
force-pushed
the
feat/a11y-state
branch
from
December 1, 2026 20:35
78b0f1b to
a191c5d
Compare
patrickkabwe
force-pushed
the
feat/a11y-state
branch
from
December 2, 2026 13:33
a191c5d to
b869da4
Compare
patrickkabwe
marked this pull request as ready for review
December 2, 2026 13:39
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.
Part of #838 (step 4). Stacked on #864.
Views take
aria-disabled,aria-selected,aria-checked(true,falseor'mixed'),aria-expandedandaria-busy.aria-disabledandaria-selectedadd the.notEnabledand.selectedtraits on top of the role's or view's own traits, stored in theAccessibilityAttributesstruct from step 3.aria-checked,aria-busy, andaria-expandedbefore iOS 18 go into the accessibility value ("checked", "mixed, busy", ...). On iOS 18,aria-expandedsetsaccessibilityExpandedStatus.View.sendAccessibilityEventreturns early when no accessibility service runs.aria-disabledonly changes what the screen reader says. It doesn't block touches.switchwitharia-checked, and "Show every line" reportsaria-expanded.Tested on the iOS simulator: the switch reads
checkedand flips touncheckedwhen tapped. A temporary caption with every prop showedselectedandnotEnablednext to the label's own static text trait, and the value "mixed, busy". The inspector doesn't reportaccessibilityExpandedStatus, so the iOS 18 expanded path is only checked by compiling. On the Android emulator, uiautomator showedenabled=false,selected,checkableandcheckedas expected, and a temporary delegate log showed "collapsed" with the expand action, then "expanded" with the collapse action after tapping. TalkBack itself was not run.Re-tested after the move to ARIA names and the rebase onto main:
aria-checkedreads checked and unchecked on iOS and flipscheckedon Android when tapped.