Repository navigation
fix(ui): switch accessibility and contrast, option sheet drag, localized picker check - #127
Merged
Merged
Conversation
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.
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.
No description provided.