Repository navigation
fix(a11y): label unnamed controls, follow Reduce Motion, check translation format specifiers - #57
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ows to VoiceOver Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
What changes
Accessibility and translation-check fixes from the codebase audit.
Toggle(""), 22Picker("")and 2TextField("")controls were read by VoiceOver as just "switch" or "pop-up button". Each now takes the text shown next to it as its label, for example the rule's summary, the module name or "Trigger"..labelsHidden()stays, so nothing changes visually. The two text fields use.accessibilityLabelinstead, so no placeholder text appears. There are 8 new strings, each with en/de/es/zh.motion(_:)andwithMotion(_:_:)helpers inTheme.swift, which give no animation when Reduce Motion is on. They wrap 29 sliding, spring and expanding animations (notch, panels, segmented controls, rings, onboarding). Short hover fades and live level meters are left as they are..onTapGestureonly. They now get.isButtonand an accessibility action that does the same thing.L("Editar").scripts/check-l10n.py:%d,%@,%.1f, positional%1$@…) match the Portuguese key. A mismatch crashesString(format:)at runtime. No existing mismatches were found.Notes for review
Toggle, now labelled, and an extra button trait would give VoiceOver two elements per row.Checklist
./build.shand I tried the change in the app. (CI builds it. Worth a quick VoiceOver pass and a look with Reduce Motion on)python3 scripts/check-l10n.pypasses (1979 texts)L("…")with en, de, es and zh🤖 Generated with Claude Code