Commit 3a3cb747b0
Unsigned
Layout: unified · split
Docs/ACCESSIBILITY.txt +77 −45
| @@ -124,7 +124,9 @@ Three deliberate carve-outs, each with its evidence: | ||
| 124 | 124 | are rows scrolled under the translucent tab bar; their attribution flips |
| 125 | 125 | between a row name and nil run-to-run, so no suppression is narrow enough to |
| 126 | 126 | keep CI stable. The centralised palette in `Shared/Colors.xcassets` is the |
| 127 | actual guard against contrast regressions. | |
| 127 | actual guard against contrast regressions. The same tab bar degrades | |
| 128 | `dynamicType` on the rows immediately above it, which is a separate carve-out | |
| 129 | — see "`dynamicType` findings land on a position, not on a row". | |
| 128 | 130 | 2. **The seeded tests run `reportOnly`.** Bisecting the row/badge accessibility |
| 129 | 131 | modifiers showed the audit degrades on `children: .ignore` content — the |
| 130 | 132 | *correct* VoiceOver treatment for dense rows — emitting unattributed |
| @@ -249,57 +251,87 @@ The same clipping is still reported on Display ("Compact", "Default", | ||
| 249 | 251 | "System") and iCloud Sync ("Merge"), which are the same construct on screens |
| 250 | 252 | outside this pass. |
| 251 | 253 | |
| 252 | ## The remaining `dynamicType` findings on Form rows are unexplained | |
| 254 | ## `dynamicType` findings land on a position, not on a row | |
| 253 | 255 | |
| 254 | Every `Picker`, `Toggle` and `LabeledContent` label on these two screens | |
| 255 | reports `dynamicType` "font sizes are partially unsupported", and the picker | |
| 256 | fix above does not change that. Eight on Monitoring Settings, five named on | |
| 257 | History & Network, the same names on both runtimes. | |
| 256 | The remaining `dynamicType` findings — eight on Monitoring Settings, five named | |
| 257 | on History & Network, three on the Settings root — report "font sizes are | |
| 258 | partially unsupported" against rows the app sets no font on. They are | |
| 259 | reproducible: identical on both runtimes and across repeat runs. The picker fix | |
| 260 | above does not touch them. | |
| 258 | 261 | |
| 259 | They are reproducible — identical on the floor and current tiers, and | |
| 260 | identical across repeat runs — but nothing was found that distinguishes a row | |
| 261 | that reports from one that does not: | |
| 262 | **They follow the slot, not the row.** Reordering the Settings root's Services | |
| 263 | section moves the findings onto whichever rows take the vacated positions: | |
| 262 | 264 | |
| 263 | - **The same constructs report nothing.** `Text`, `Text` with the density | |
| 264 | caption font, `Toggle` and `LabeledContent` inserted as probe rows into the | |
| 265 | same `Form` all audit clean. | |
| 266 | - **Inserting rows moves the findings.** With five probe rows above them, | |
| 267 | "Adaptive Monitoring" began reporting and "Enable Background Monitoring" | |
| 268 | stopped, and "Background Refresh" and "Notification Access" switched from | |
| 269 | `dynamicType` to `contrast`. An element's font scalability does not change | |
| 270 | because rows were inserted above it, so whatever the check measures depends | |
| 271 | on where the row sits, not on the row. | |
| 272 | - **The rows render correctly.** Captured at `XXL` and `AccessibilityXXXL`: | |
| 273 | every named label scales, wraps and reads in full. Nothing is truncated and | |
| 274 | nothing stops growing. | |
| 275 | ||
| 276 | So the finding does not point at a defect in the label it names, and no fix | |
| 277 | follows from it. They stay reported rather than suppressed: a `noiseReason` | |
| 278 | rule broad enough to cover them would also hide a real regression on any Form | |
| 279 | row. `dynamicType` is not enforced on these screens. | |
| 280 | ||
| 281 | ## The Settings root fails the enforced audit on the current runtime | |
| 265 | | Slot | Before | | After | | | |
| 266 | | --- | --- | --- | --- | --- | | |
| 267 | | 1 | Monitoring Log | | Local API | | | |
| 268 | | 2 | Integrations | | iCloud Sync | | | |
| 269 | | 3 | Local API | FAIL | Monitoring Settings | FAIL | | |
| 270 | | 4 | iCloud Sync | FAIL | Monitoring Log | FAIL | | |
| 271 | | 5 | Monitoring Settings | FAIL | Integrations | FAIL | | |
| 272 | | 6 | Scheduled Reports | contrast | Scheduled Reports | contrast | | |
| 282 | 273 | |
| 283 | Found while measuring the above, and **not caused by it** — reproduced with the | |
| 284 | change stashed, on `main` at `02a3463`: | |
| 274 | Every one of those rows is an identical `NavigationLink("Title") { … }`. The | |
| 275 | only thing that changed is which title sits in slots 3–5. | |
| 285 | 276 | |
| 286 | ``` | |
| 287 | settings: 7 finding(s) | |
| 288 | • [FAIL][dynamicType] ... — "Local API" | |
| 289 | • [FAIL][dynamicType] ... — "Monitoring Settings" | |
| 290 | • [FAIL][dynamicType] ... — "iCloud Sync" | |
| 291 | ``` | |
| 277 | **The slots are the band above the tab bar.** Measured frames at default size | |
| 278 | in a 912pt window: | |
| 292 | 279 | |
| 293 | `testSettingsScreen` is an enforced test, and this fails it on iOS 27.0. The | |
| 294 | floor tier passes. The pre-push hook runs the floor tier only and there is no | |
| 295 | CI, so nothing has been looking at the current tier since the hook was wired | |
| 296 | up. | |
| 280 | | Row | y | Hittable | | |
| 281 | | --- | --- | --- | | |
| 282 | | Monitoring Log | 590–642 | yes | | |
| 283 | | Integrations | 642–694 | yes | | |
| 284 | | Local API | 694–746 | yes | | |
| 285 | | iCloud Sync | 746–798 | yes | | |
| 286 | | Monitoring Settings | 798–850 | yes | | |
| 287 | | Scheduled Reports | 850–902 | **no** | | |
| 288 | ||
| 289 | The translucent tab bar starts around y 829. The three reporting slots are the | |
| 290 | 156pt directly above it; the row that sits fully behind it reports `contrast` | |
| 291 | instead. As the audit sweeps content size categories the rows march downward — | |
| 292 | at `XXXL`, Monitoring Settings is at y 885 and no longer hittable and | |
| 293 | Scheduled Reports is gone from the tree entirely — so the rows in that band are | |
| 294 | the ones whose measurement degrades part-way through the sweep. Hence | |
| 295 | "partially". | |
| 296 | ||
| 297 | This is the same root cause already carved out for `.contrast`: rows under the | |
| 298 | translucent tab bar. It simply surfaces in a second audit category. | |
| 299 | ||
| 300 | Two earlier observations fit this and no other explanation: | |
| 297 | 301 | |
| 298 | The three are the same unexplained finding as above: all twelve rows in the | |
| 299 | Settings root are an identical `NavigationLink("Title") { … }`, the three named | |
| 300 | are consecutive middle rows, and the set is the same on repeat runs. It needs a | |
| 301 | decision — suppress, or widen the hook to both tiers and accept a red gate — | |
| 302 | rather than a quiet carve-out. | |
| 302 | - **The same constructs report nothing.** `Text`, `Text` with the density | |
| 303 | caption font, `Toggle` and `LabeledContent` inserted as probe rows into the | |
| 304 | Monitoring Settings `Form` all audit clean — they sat near the top. | |
| 305 | - **Inserting rows moved the findings.** With five probe rows above them, | |
| 306 | "Adaptive Monitoring" began reporting and "Enable Background Monitoring" | |
| 307 | stopped, and "Background Refresh" and "Notification Access" switched from | |
| 308 | `dynamicType` to `contrast` — pushed from the band into the bar. | |
| 309 | - **The rows render correctly.** Captured at `XXL` and `AccessibilityXXXL`, | |
| 310 | every named label scales, wraps and reads in full. | |
| 311 | ||
| 312 | ### What was done about it | |
| 313 | ||
| 314 | The Settings root is the only *enforced* screen long enough to reach the band, | |
| 315 | so it was the only one failing — `testSettingsScreen`, on iOS 27.0, with three | |
| 316 | `[FAIL][dynamicType]` findings. Reproduced with the picker change stashed on | |
| 317 | `main` at `02a3463`, so it predated that work. The floor tier passes, the | |
| 318 | pre-push hook runs the floor tier only, and there is no CI, which is why | |
| 319 | nothing had been looking at it. | |
| 320 | ||
| 321 | `noiseReason` now classifies dynamicType findings on the Settings root's row | |
| 322 | titles (`settingsDestinationRows`), with the reorder table recorded inline as | |
| 323 | the evidence. It is scoped to that category and those titles, so a regression on | |
| 324 | anything else on that screen still fails. | |
| 325 | ||
| 326 | Not done, deliberately: nothing was changed in the UI. List content scrolling | |
| 327 | under a translucent tab bar is how iOS is supposed to look, and inset-ing the | |
| 328 | list to stop it would be changing correct layout to satisfy a measurement | |
| 329 | artifact. | |
| 330 | ||
| 331 | The equivalent findings on the report-only Settings destinations are the same | |
| 332 | artifact and stay reported — those screens do not gate, so there is nothing to | |
| 333 | unblock, and a suppression wide enough to cover arbitrary `Form` rows would | |
| 334 | hide real regressions. | |
| 303 | 335 | |
| 304 | 336 | ## Long navigation titles clip |
| 305 | 337 | |
DomainDigUITests/AccessibilityAuditHarness.swift +41
| @@ -236,9 +236,50 @@ enum AccessibilityAuditHarness { | ||
| 236 | 236 | return "iOS-rendered Settings section header, app sets no font (27.0-only)" |
| 237 | 237 | } |
| 238 | 238 | |
| 239 | // The Settings root's own rows, where the finding is a measurement | |
| 240 | // artifact of the audit's size sweep rather than anything about the | |
| 241 | // row. Proven by reordering the Services section: the findings stayed | |
| 242 | // on the same three slots and followed their new occupants. | |
| 243 | // | |
| 244 | // slot | before | after | |
| 245 | // -----+---------------------+-------------------- | |
| 246 | // 1 | Monitoring Log | Local API | |
| 247 | // 2 | Integrations | iCloud Sync | |
| 248 | // 3 | Local API * | Monitoring Settings * | |
| 249 | // 4 | iCloud Sync * | Monitoring Log * | |
| 250 | // 5 | Monitoring Settings*| Integrations * | |
| 251 | // 6 | Scheduled Reports | Scheduled Reports (contrast) | |
| 252 | // | |
| 253 | // Those slots are y 694–850 in a 912pt window: the band directly above | |
| 254 | // the translucent tab bar, which begins around y 829. The row that | |
| 255 | // sits fully under the bar reports `contrast` instead — the same | |
| 256 | // long-standing artifact already carved out for that category, in a | |
| 257 | // second one. Every row is an identical `NavigationLink("Title")` and | |
| 258 | // the app sets no font on any of them. | |
| 259 | // | |
| 260 | // Scoped to dynamicType on the exact row titles, so a real regression | |
| 261 | // on anything else on that screen still fails. The equivalent findings | |
| 262 | // on the report-only Settings destinations are the same artifact and | |
| 263 | // are left reported; see Docs/ACCESSIBILITY.txt. | |
| 264 | if issue.auditType.contains(.dynamicType), | |
| 265 | let label = issue.element?.label, | |
| 266 | settingsDestinationRows.contains(label) { | |
| 267 | return "Settings root row in the band above the tab bar, position-dependent" | |
| 268 | } | |
| 269 | ||
| 239 | 270 | return nil |
| 240 | 271 | } |
| 241 | 272 | |
| 273 | /// The Settings root's `NavigationLink` titles. Used to scope the | |
| 274 | /// position-dependent dynamicType carve-out above to that one screen. | |
| 275 | private static let settingsDestinationRows: Set<String> = [ | |
| 276 | "Display", "History & Network", | |
| 277 | "Monitoring Log", "Integrations", "Local API", "iCloud Sync", | |
| 278 | "Monitoring Settings", "Scheduled Reports", | |
| 279 | "Import & Export", "Data Management", | |
| 280 | "App Info" | |
| 281 | ] | |
| 282 | ||
| 242 | 283 | /// The Settings screen's `Section(_:)` header titles. UIKit renders these; |
| 243 | 284 | /// the app passes only a string literal. Used to scope the section-header |
| 244 | 285 | /// dynamicType carve-out narrowly (see `noiseReason`). |