Build the VoiceOver tree and actions
The board window's accessibility tree per DESIGN/10: lanes are containers labeled "<title>, lane, N cards" (filter-aware count = renderedCards, the badge's own collection); cards are one flattened element each — label = title or the untitled placeholder, value = attachment count + "cut, pending paste", selection via trait; face icon, stripe, and paperclip are decorative and hidden. Masonry never leaks into traversal: slots carry order-keyed accessibilitySortPriority, so a wide lane reads by card order, not column-major. Lane titles carry the heading trait for the rotor. VO-Space is the ⌘-click analogue routed through the existing BoardStore.click funnel (SelectionGrammar stays the single answer for toggle and container-boundary rules) — cards and lane headers both. Context-menu rows double as custom accessibility actions, each calling the same private method as its menu row so the surfaces cannot drift; trash cards expose Delete and Reveal in Finder and never Open. The trash column is pinned last via sort priority 0, its label/value re-routed through the new AccessibilityPhrases seam; toggling trash visibility posts a one-line announcement from the store seam (both command faces). The invisible lane-resize drag strip leaves the tree — the stepper and menu items are the accessible width path. AccessibilityPhrases is the pure vocabulary seam (labels, values, plural folding shared with TrashModel.phrase), pinned by its own test suite. Both schemes build; 1466 unit tests green. Claude-Session: https://claude.ai/code/session_01SR4XGjmBE16ZUYWpfFHXwY
This commit is contained in:
@@ -73,6 +73,12 @@ struct LaneResizeHandle: View {
|
||||
popCursor()
|
||||
}
|
||||
)
|
||||
// **Pointer-only, and out of the tree** — "the header context menu's width stepper — and
|
||||
// its keyboard face, the Increase/Decrease Lane Width menu items — is the accessible
|
||||
// path; edge drag is enhancement only" (10-accessibility.md ▸ Moving without dragging).
|
||||
// An invisible strip that can only be dragged is a stop with nothing behind it, and it
|
||||
// would sit between two lane containers in the strip's traversal.
|
||||
.accessibilityHidden(true)
|
||||
}
|
||||
|
||||
private func pushCursor() {
|
||||
|
||||
Reference in New Issue
Block a user