Skip to content

fix(ui): switch accessibility and contrast, option sheet drag, localized picker check - #127

Merged
usamaiqb merged 2 commits into
mainfrom
refactor/expressive-canonical-sync
Nov 14, 2026
Merged

usamaiqb merged 2 commits into
mainfrom
refactor/expressive-canonical-sync

Conversation

@usamaiqb

Copy link
Copy Markdown
Owner

No description provided.

The checked switch drew its Check in onPrimaryContainer on an onPrimary
handle. On a light dynamic-colour scheme both resolve to white, so the
check measured 1.00:1 and vanished. It is now tinted primary, the defined
counterpart of the handle (9.97:1 on the same scheme).

Switch rows were clickable Boxes, so TalkBack read them as buttons with no
state; the switch itself is hidden from accessibility because its callback
is null. The row now sits on ToggleSettingsSurface, which uses toggleable
and reports itself as a switch that is on or off.

The option sheet now takes the status-bar inset itself. Left to the
default, a list just long enough to reach the bar made the sheet jump by
the bar's height on every frame of a drag.

The row containers (SettingsSurface, RowLeadingIcon, RowLeadingChip) move
to ExpressiveSettingsSurfaces.kt, and ActionSettingsRow is renamed ActionRow,
so the four About rows in Settings follow the rename. ExpressiveHaptics
gains open() and reject(), and the option sheet a selectedDescription
parameter; neither is used here yet.
TalkBack announced the checked language as "Selected" in English whatever
the locale, because the option sheet's check had a hard-coded description.
The picker now passes cd_selected, translated in all eleven locales.
@usamaiqb usamaiqb self-assigned this Nov 14, 2026
@usamaiqb
usamaiqb merged commit 005bf42 into main Nov 14, 2026
4 checks passed
@usamaiqb
usamaiqb deleted the refactor/expressive-canonical-sync branch November 14, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant