Repository navigation
fix(icons): stop VoiceOver reading asset names of the remaining icons - #91
Conversation
DashAmount reads as one element, the figure and its currency. The success and error illustrations and the bare navigation bar glyphs are hidden. TransactionView's secondary icon and MenuItem's info icon are hidden until the host names them with secondaryIconAccessibilityLabel(_:) / infoAccessibilityLabel(_:). Part of dashpay#38. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
romchornyi
left a comment
There was a problem hiding this comment.
✅ No blockers, no major · 2 gaps · 1 host-side consequence · 1 nit — reviewed at b2f194d363
| Level | Verdict | |
|---|---|---|
| 1 · Idea | ✅ valid | #38: VoiceOver read asset file names ("icon_dash_currency", "transaction-error"). |
| 2 · Architecture | ✅ right layer | "Decoration is hidden, meaning is named by the host" lives in the components. |
| 3 · Completeness | 🟡 gaps | Below. |
| 4 · Code | ✅ clean | CI green. |
Gaps
infoAccessibilityLabel(_:)does nothing forinfo: .round—MenuItem.swift#L154— only the.iconcase applies the label, while the doc promises it for "aninfoicon". A host that names a round info icon loses the label silently; dashwallet-ios uses.round(its settings rows). Apply it to.roundtoo, or narrow the doc and the API to.icon.- The public icon views are now always silent —
NavigationBarCircleIcon.swift#L52,NavigationBar.swift#L161— a hostButtonbuilt fromNavigationBarCircleIconorNavigationBarElement.iconwithout its own.accessibilityLabelnow reads only "Button"; before, it read the SF Symbol's name or at least the asset's. Hide the glyph inside the library's own button and menu, or say in the docs that the host must label such a button. (No such use in dashwallet-ios today.)
For the host app — every TransactionView.secondaryIcon goes silent until the app adds secondaryIconAccessibilityLabel(_:): the swap error badge (read as "transaction-error" before) and the SF Symbol direction badges (read as "Down Arrow" before). Ship an app change with this release, or keep .system badges readable by default.
1 nit
" Dash"is spoken but not in the string table —DashAmount.swift#L118—CLAUDE.mdasks forNSLocalizedString(_, bundle: .module, comment:)for user-facing strings; a"%@ Dash"format would let a locale reorder it, brand name or not.
Review details
Levels 1–3 inline, including the host app's call sites and its Maestro flows (they look up the bar buttons by "Back" / "Close" or by id, which this PR does not change); level 4 /code-review high. A concern that NavigationBarCircleMenu becomes unreachable with all of its label hidden was dropped: the Menu carries its own .accessibilityLabel. Not checked with VoiceOver on a device.
🤖 Reviewed with Claude Code
- infoAccessibilityLabel(_:) now names MenuItem's .round info mark too, not only .icon. - The glyph is hidden inside the library's own bar button, circle button and menu, which carry the label; NavigationBarElement.icon and NavigationBarCircleIcon on their own stay readable for host buttons built from them. - DashAmount's spoken amount goes through a localizable "%@ Dash" format. - Previews for a labeled badge and labeled info marks. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Addressed in ece52eb:
Also added previews for a labeled badge and labeled info marks. Unit tests and |
romchornyi
left a comment
There was a problem hiding this comment.
✅ Gaps closed · no blockers, no major · 1 non-blocking recommendation — re-reviewed at ece52eb017
| Level | Verdict | |
|---|---|---|
| 1 · Idea | ✅ valid | Unchanged. |
| 2 · Architecture | ✅ right layer | Unchanged. |
| 3 · Completeness | ✅ complete | Both gaps closed. |
| 4 · Code | ✅ clean | CI green. |
Closed since the last review
-
infoAccessibilityLabel(_:)names the.roundmark too: both cases share oneGroupwith one label, hidden while unnamed. -
NavigationBarElement.iconandNavigationBarCircleIconon their own stay readable; the glyph is hidden only inside the library's bar button, circle button and menu, which carry the label.docs/foundation.mdsays a host button built from them labels itself. -
DashAmountspeaks through a localizable"%@ Dash"format.
For the host app (unchanged) — every TransactionView.secondaryIcon stays silent until the app adds secondaryIconAccessibilityLabel(_:) (the swap error badge, the direction badges). Ship that app change with this release.
1 non-blocking recommendation
- No test pins what VoiceOver reads — the XCUITest dump in the description is not in the repo. A unit test on
DashAmount's spoken text ("-1.5 Dash") and on an unnamed badge / info mark staying hidden would keep this from regressing.
Review details
Re-review of the one commit since b2f194d363: each earlier point checked at this head by reading. Not checked with VoiceOver on a device.
🤖 Reviewed with Claude Code
The spoken amount with its sign and currency, and the badge and info labels whose absence keeps the icon hidden. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
On the recommendation, in 5d4574b: |
romchornyi
left a comment
There was a problem hiding this comment.
✅ Recommendation closed · nothing open — re-reviewed at 5d4574b7ea
Closed since the last review
-
VoiceOverLabelTestspins the spoken amount with its sign and currency (-,+with.always, none with.none), and that the badge and both info marks carry no label until the host names one, which is what keeps them hidden. It checks the values the views build the tree from, asToastAccessibilityTestsdoes. The only library change isDashAmount.accessibilityTextgoing fromprivatetointernal; the public API is unchanged.
The host-side note from the last review still applies: dashwallet-ios should label its secondaryIcon badges in the release that picks this up.
🤖 Reviewed with Claude Code
Issue being fixed or feature implemented
Part of #38.
A measurement on
master(a throwaway app with an XCUITest target dumping the accessibility tree) showed what VoiceOver still read by an asset's file name:DashAmount(and every amount inTransactionView, balances, confirmations)TransactionView.secondaryIconMenuItemInfo.iconSuccessIllustration/ErrorIllustrationNavigationBarElement.icon/NavigationBarCircleIconon their ownWhat was done?
Rule: an icon that only decorates is hidden; one that can carry meaning is named by the host, and hidden until it is.
DashAmountis one element whose label is the figure and its currency: "1,5 Dash", "-1,5 Dash".SuccessIllustrationandErrorIllustrationare hidden: the screen's title says what happened.NavigationBarCircleIconand ofNavigationBarElement.iconis hidden: the button around it (NavigationBarElement.button,NavigationBarCircleButton) carries the label.TransactionView.secondaryIconAccessibilityLabel(_:)andMenuItem.infoAccessibilityLabel(_:)name the badge and the info icon; without a name they are hidden. Both are additive modifiers, so no signature changes.docs/foundation.mddescribes what is hidden, what the host names, and what is still read.Image(dash:)itself is unchanged.For the release notes: VoiceOver no longer reads asset names for these icons; a host that shows a
secondaryIconor an info icon with meaning should pass a label.How Has This Been Tested?
conventions.sh.TransactionViewreads the amount before the title, in screen order.Before / After
Only accessibility changes; nothing is drawn differently.
Breaking Changes
None in the API. What VoiceOver reads changes, as listed above.
Checklist:
🤖 Generated with Claude Code