You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 335f424
Browse filesBrowse the repository at this point in the historyBrowse files
[VPAT] Fix semantics in a11y_assessments drawer, radio, and rail demos (flutter#13159)
## Problem
Several a11y_assessments demos expose incomplete semantics to screen readers. The navigation drawer header is not marked as a heading, the drawer does not expose which item is selected, the RadioListTile radios are not in a labeled group, and the NavigationRail "Label type" and "Group alignment" controls are neither grouped with their labels nor expose which option is active.
## Fix
Mark the navigation drawer header with `headingLevel: 2`, set `ListTile.selected` from the current page, wrap the radios in a `RadioGroup` with a visible group label, and replace the NavigationRail option rows with `SegmentedButton`s wrapped with their labels in a semantics container. The drawer header itself is already a heading since flutter#12918, so it is not changed here. Only the test app changes, so no package version or CHANGELOG update is needed.
## Demo
Run the test app and use a screen reader on #/drawer, #/navigation-drawer, #/radio-list-tile, and #/navigation-rail.
0 commit comments