Commit fa75feb511
fa75feb511a41f9024d60ad5b46d5c673526dd3a
parent: a8eaa09d43
Unsigned
cmc <hello@cleberg.net> · 2026-10-26 17:10 UTC
Fix the last clipped picker values, and gate Display on clipping (!58)
Appearance, Accent and Density on Display, and Import Mode on Import & Export,
were the four picker values still clipping at accessibility text sizes:
"Compact", "Default", "System" and "Merge". `AdaptivePicker` already fixes that
construct — these are the screens it had not reached. No plain `Picker` remains
in `SettingsViews.swift`.
## Enforcement
`textClipped` on Display: 3 → 0, on both runtimes. It joins Monitoring Settings
in gating on that category via `enforcedPerScreen`.
Import & Export is **not** gated although its picker is fixed. Its one remaining
clipped finding is its own navigation title, 15 characters, which only a shorter
screen name would change. History & Network, Scheduled Reports and Data
Management are the same case.
| Screen | textClipped floor | textClipped current |
| --- | --- | --- |
| Display | 0 | 0 |
| Import & Export | navigation title only | 0 |
## A correction
An earlier note put "Merge" on iCloud Sync. That was read off a findings list
pooled across screens with `sort -u`; it is on Import & Export, and iCloud Sync
has no clipped findings at all. Corrected in `Docs/ACCESSIBILITY.txt`.
## Still reported
The same picker clipping remains on the integration editor — "Minimum
Severity", "Warning", "Webhook" — which `testIntegrationEditor` covers rather
than the Settings-destination sweep, so it was outside this change.
Verified: `./Scripts/audit-a11y.sh` passes on both tiers with no enforced
failures, before and after adding Display to the gated set. 377/377 unit tests.
Ratchet unchanged at 280.
Ref #21
Layout: unified · split
Docs/ACCESSIBILITY.txt
+25 −7
| @@ -142,7 +142,7 @@ Three deliberate carve-outs, each with its evidence: |
| 142 | `enforcedAuditTypes` is what a fully cleared screen gets. A screen part-way |
142 | `enforcedAuditTypes` is what a fully cleared screen gets. A screen part-way |
| 143 | through its burndown passes `enforcing:` to `audit` instead, naming only the |
143 | through its burndown passes `enforcing:` to `audit` instead, naming only the |
| 144 | categories it has cleared, so progress gates as it is made rather than waiting |
144 | categories it has cleared, so progress gates as it is made rather than waiting |
| 145 | on the whole screen. Monitoring Settings is the first: `.textClipped` only. |
145 | on the whole screen. Monitoring Settings and Display gate on `.textClipped`. |
| 146 | |
146 | |
| 147 | Enforcement is a committed constant rather than a CI setting, for two reasons. |
147 | Enforcement is a committed constant rather than a CI setting, for two reasons. |
| 148 | Environment variables do not work: neither a plain `xcodebuild` env var nor a |
148 | Environment variables do not work: neither a plain `xcodebuild` env var nor a |
| @@ -360,12 +360,30 @@ the Settings table above overstate what is left: |
| 360 | | `contrast` | 6 | Report-only by standing policy | |
360 | | `contrast` | 6 | Report-only by standing policy | |
| 361 | | `elementDetection` | 1 | Not investigated | |
361 | | `elementDetection` | 1 | Not investigated | |
| 362 | |
362 | |
| 363 | The actionable remainder is four clipped picker values — "Compact", "Default" |
363 | The actionable remainder was four clipped picker values — "Compact", "Default" |
| 364 | and "System" on Display, and "Merge" on iCloud Sync — which are the same |
364 | and "System" on Display, and "Merge" on Import & Export — the same construct |
| 365 | construct `AdaptivePicker` already fixes, on two screens outside that pass. The |
365 | `AdaptivePicker` already fixes. (An earlier note put "Merge" on iCloud Sync; |
| 366 | four navigation titles need a shorter screen name, which is a naming decision |
366 | that was read off a sorted list pooled across screens. iCloud Sync has no |
| 367 | rather than a bug. Everything else either renders correctly or is already |
367 | clipped findings at all.) |
| 368 | carved out. |
368 | |
| |
369 | All four are now fixed, by converting the three Display pickers and the Import |
| |
370 | Mode picker. `textClipped` on Display goes from 3 to 0, so it joins Monitoring |
| |
371 | Settings in gating on that category. Import & Export keeps one clipped finding — |
| |
372 | its own navigation title — so it stays report-only despite its picker being |
| |
373 | fixed. |
| |
374 | |
| |
375 | That leaves, across the ten Settings destinations: |
| |
376 | |
| |
377 | | Finding | Where | Why it stays | |
| |
378 | | --- | --- | --- | |
| |
379 | | 4 clipped navigation titles | History & Network, Scheduled Reports, Import & Export, Data Management | Only a shorter screen name fixes it | |
| |
380 | | 21 `dynamicType` | all | Position-dependent, per the above | |
| |
381 | | 6 `contrast` | all | Report-only by standing policy | |
| |
382 | | 1 `elementDetection` | Local API | Not investigated | |
| |
383 | |
| |
384 | The same picker clipping is still reported on the integration editor — |
| |
385 | "Minimum Severity", "Warning", "Webhook" — which is covered by |
| |
386 | `testIntegrationEditor` rather than the Settings-destination sweep. |
| 369 | |
387 | |
| 370 | ### What was done about it |
388 | ### What was done about it |
| 371 | |
389 | |
DomainDig/SettingsViews.swift
+4 −4
| @@ -113,13 +113,13 @@ private struct DisplaySettingsView: View { |
| 113 | var body: some View { |
113 | var body: some View { |
| 114 | Form { |
114 | Form { |
| 115 | Section("Display") { |
115 | Section("Display") { |
| 116 | Picker("Appearance", selection: $storedAppearance) { |
116 | AdaptivePicker("Appearance", selection: $storedAppearance) { |
| 117 | ForEach(AppAppearance.allCases) { appearance in |
117 | ForEach(AppAppearance.allCases) { appearance in |
| 118 | Text(appearance.title).tag(appearance.rawValue) |
118 | Text(appearance.title).tag(appearance.rawValue) |
| 119 | } |
119 | } |
| 120 | } |
120 | } |
| 121 | |
121 | |
| 122 | Picker("Accent", selection: $storedAccent) { |
122 | AdaptivePicker("Accent", selection: $storedAccent) { |
| 123 | ForEach(AccentTheme.allCases) { accent in |
123 | ForEach(AccentTheme.allCases) { accent in |
| 124 | Text(accent.title).tag(accent.rawValue) |
124 | Text(accent.title).tag(accent.rawValue) |
| 125 | } |
125 | } |
| @@ -134,7 +134,7 @@ private struct DisplaySettingsView: View { |
| 134 | .font(appDensity.font(.caption, design: .default)) |
134 | .font(appDensity.font(.caption, design: .default)) |
| 135 | .foregroundStyle(ThemeToken.textSecondary) |
135 | .foregroundStyle(ThemeToken.textSecondary) |
| 136 | |
136 | |
| 137 | Picker("Density", selection: $storedDensity) { |
137 | AdaptivePicker("Density", selection: $storedDensity) { |
| 138 | ForEach(AppDensity.allCases) { density in |
138 | ForEach(AppDensity.allCases) { density in |
| 139 | Text(density.title).tag(density.rawValue) |
139 | Text(density.title).tag(density.rawValue) |
| 140 | } |
140 | } |
| @@ -664,7 +664,7 @@ private struct DataPortabilitySettingsView: View { |
| 664 | var body: some View { |
664 | var body: some View { |
| 665 | Form { |
665 | Form { |
| 666 | Section("Import & Export") { |
666 | Section("Import & Export") { |
| 667 | Picker("Import Mode", selection: $importMode) { |
667 | AdaptivePicker("Import Mode", selection: $importMode) { |
| 668 | ForEach(DataPortabilityImportMode.allCases) { mode in |
668 | ForEach(DataPortabilityImportMode.allCases) { mode in |
| 669 | Text(mode.title).tag(mode) |
669 | Text(mode.title).tag(mode) |
| 670 | } |
670 | } |
DomainDigUITests/AccessibilityAuditTests.swift
+11 −6
| @@ -260,12 +260,16 @@ final class AccessibilityAuditTests: XCTestCase { |
| 260 | /// build on findings that predate the coverage. They are a burndown list |
260 | /// build on findings that predate the coverage. They are a burndown list |
| 261 | /// for #21, and the enforced set widens per screen as each one clears. |
261 | /// for #21, and the enforced set widens per screen as each one clears. |
| 262 | /// |
262 | /// |
| 263 | /// Monitoring Settings is the first to gate, on `.textClipped` alone: its |
263 | /// Monitoring Settings and Display gate on `.textClipped` alone: their |
| 264 | /// five clipped picker values are fixed (`AdaptivePicker`) and that |
264 | /// clipped picker values are fixed (`AdaptivePicker`) and that category is |
| 265 | /// category is now empty on both runtimes. Its `dynamicType` findings stay |
265 | /// now empty on both runtimes. Their `dynamicType` findings stay reported — |
| 266 | /// reported — they are reproducible but nothing was found that |
266 | /// those land on a position rather than on the row they name, which |
| 267 | /// distinguishes a row that reports from one that does not, and the rows |
267 | /// reordering proves, so no fix follows from them. |
| 268 | /// render correctly at every size. See `Docs/ACCESSIBILITY.txt`. |
268 | /// |
| |
269 | /// Import & Export is not gated although its picker value is fixed too: its |
| |
270 | /// one remaining clipped finding is the navigation title, which only a |
| |
271 | /// shorter screen name would change. Same for History & Network, Scheduled |
| |
272 | /// Reports and Data Management. See `Docs/ACCESSIBILITY.txt`. |
| 269 | /// |
273 | /// |
| 270 | /// One launch rather than ten: re-selecting the Settings tab pops it back |
274 | /// One launch rather than ten: re-selecting the Settings tab pops it back |
| 271 | /// to root, so each destination is reached from a known place, and the |
275 | /// to root, so each destination is reached from a known place, and the |
| @@ -284,6 +288,7 @@ final class AccessibilityAuditTests: XCTestCase { |
| 284 | "App Info" |
288 | "App Info" |
| 285 | ] |
289 | ] |
| 286 | let enforcedPerScreen: [String: XCUIAccessibilityAuditType] = [ |
290 | let enforcedPerScreen: [String: XCUIAccessibilityAuditType] = [ |
| |
291 | "Display": .textClipped, |
| 287 | "Monitoring Settings": .textClipped |
292 | "Monitoring Settings": .textClipped |
| 288 | ] |
293 | ] |
| 289 | |
294 | |