Skip to content

fix: make setup's tiles, closing card and permission buttons work with the keyboard and VoiceOver - #554

Merged
Seb-GRAF merged 1 commit into
mainfrom
fix/464-setup-keyboard-voiceover
Nov 11, 2026
Merged

Seb-GRAF merged 1 commit into
mainfrom
fix/464-setup-keyboard-voiceover

Conversation

@M4n0x

@M4n0x M4n0x commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Setup was hard to use with the keyboard and VoiceOver:

  • Without Full Keyboard Access, Tab didn't reach the preset, theme and placement tiles.
  • The closing card suppressed focus rings.
  • Every permission button read only Allow… or Open Settings….
  • The intro's wordmark had no label, and the progress dots said "Step 1 of 5" during the intro.
  • Preset tiles read out icon names.

Fixes #464

Changes

  • Tiles (SetupTile) follow how buttons behave on the Mac:
    • one Tab stop each, even with macOS's Keyboard navigation off (unrestricted .focusable, macOS 14+). The inner button is .focusable(false), so there's no second stop when Keyboard navigation is on;
    • Space chooses the focused tile. Return stays with Continue, the default button, which macOS gives the key to first anyway. ← → still change themes and Esc still skips;
    • a mouse click doesn't leave a focus ring, and nothing has focus when a step or the window appears. Rings show only once you press Tab;
    • the ring follows the tiles' rounded corners (.contentShape(.focusEffect, …)), and a theme that gets focus scrolls into view, without animation when Reduce Motion is on.
  • VoiceOver:
    • each tile is one element with its name, the button trait and selected state;
    • preset tiles describe their widgets in words, for example "Notch. Notch theme. Widgets: Apple menu, App menus, Sound, Battery, Clock, Menu bar items.", matching what the tile draws for the bar's placement and for Macs without a battery;
    • the intro's wordmark reads "StableBar";
    • the progress dots say "Introduction" during the intro.
  • Permission buttons name their permission ("Allow Accessibility", "Open Automation Settings") in the shared helper. They also list the visible title as a Voice Control input label, so "Click Open Settings" works. The title-based helper stays, so feat: check the Switch to Desktop shortcuts in setup and Settings #551's "Open Keyboard Shortcuts…" row compiles unchanged.
  • The closing card shows focus rings again.
  • docs/getting-started.md describes the keyboard controls.

Testing

SetupAccessibilityTests:

  • every preset's label, with and without a battery, for both placements;
  • the "Introduction" label;
  • permission names;
  • in an offscreen window, the key-view loop moves tile 0 → tile 1, Space chooses the focused tile once, and Return goes through performKeyEquivalent to Continue.

A standalone probe (a copy of the tile with Continue, Previous and Skip shortcuts in an offscreen window) gave the same results with AppleKeyboardUIMode 1, 2 and 3:

  • no focus at first, after a step change, or after a click;
  • one Tab stop per tile;
  • Space fires once;
  • ← → and Esc still work.

git merge-tree with #551 is clean, and the merged tree builds. 28 XCTest and 26 Swift Testing pass in the setup filter. scripts/check.sh --quick and commitlint pass.

No images: all six setup scenes render byte-identical to main, because offscreen drawing doesn't show focus rings. To check by hand:

  • Keyboard navigation off: Tab cycles the tiles with a rounded ring, Space chooses, Return continues, and a click leaves no ring.
  • Keyboard navigation on: one Tab stop per tile, and Space fires once.
  • VoiceOver: each tile reads its label, "button" and "selected", and VO-Space chooses it.

Merging

One commit on main, rebased after #549 (Reduce Motion) merged: SetupTile now combines #549's SetupMotion scaling and animations with this PR's focus, Space key and accessibility handling, and the closing card keeps #549's live Reduce Motion wiring without .focusEffectDisabled(). Any merge method works.

GPT-6.1-sol via Codex, reviewed by Claude Opus 5.5 via Claude Code

@M4n0x
M4n0x requested a review from Seb-GRAF as a code owner November 11, 2026 01:29
@M4n0x M4n0x self-assigned this Nov 11, 2026
@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Setup tiles support keyboard focus and Space activation. Accessibility labels identify preset widgets by placement, the introduction and numbered steps, and permission actions. Tests cover the labels and keyboard interactions.

Changes: Setup Accessibility

Layer / File(s) Summary
Tile keyboard interaction
Sources/StableBar/SetupTour.swift, Sources/StableBar/SetupWindow.swift, Tests/StableBarTests/SetupAccessibilityTests.swift
SetupTile supports keyboard focus and Space activation. Theme scrolling centers focused choices and respects Reduce Motion when selection changes. SetupCardView no longer disables focus effects. Tests exercise tile focus, activation, and the default Continue action.
Setup content labels
Sources/StableBar/SetupPreferences.swift, Sources/StableBar/SetupTour.swift, Tests/StableBarTests/SetupAccessibilityTests.swift, docs/getting-started.md
Preset labels include widget names that vary by placement. The intro wordmark and progress indicator have descriptive labels. Preset preview graphics are hidden from accessibility. The setup guide documents keyboard and VoiceOver behavior.
Permission action labels
Sources/StableBar/SetupWindow.swift, Sources/StableBar/SetupTour.swift, Tests/StableBarTests/SetupAccessibilityTests.swift
Permission actions provide titles and labels that identify the permission. Permission buttons use these values, and tests check the labels.

Possibly related issues

  • Seb-GRAF/StableBar#467: This change labels the introduction progress indicator, which addresses the issue’s identification of the first dot as the introduction; it does not address the issue’s other wording or visual requirements.

Possibly related PRs

  • Seb-GRAF/StableBar#492: This PR extends the setup tour with keyboard focus, activation, and accessibility labels.
  • Seb-GRAF/StableBar#442: Both PRs cover setup permission controls; this PR adds action titles and permission-specific accessibility labels.
  • Seb-GRAF/StableBar#468: This PR uses the placement distinction defined in #468 to select widget names for preset accessibility labels.

Severity of issue fixed: Medium

Merge Risk: Minimal · up to 577f1

The change adds keyboard focus, Space activation, and descriptive VoiceOver labels to the setup flow. No concrete merge-blocking defect was established. Manual keyboard and VoiceOver checks are still worth completing before release.

Pre-merge checks: Passed 3

Check name Status Explanation
Description check Passed The description includes all required sections: Problem, Changes, Testing, and Merging. It explains the issue, implementation, validation results, manual checks, merge context, and the model and harne…
Linked Issues check Passed The changes address all coding requirements in #464. SetupTile adds keyboard focus and Space activation. The closing card restores focus rings. SetupPermission.Action supplies permission-specific …
Out of Scope Changes check Passed The changed source files implement the keyboard and VoiceOver requirements in #464. The added tests verify those behaviors. The documentation describes the resulting controls. No unrelated change is e…
Full details: Description check

Explanation

The description includes all required sections: Problem, Changes, Testing, and Merging. It explains the issue, implementation, validation results, manual checks, merge context, and the model and harness used.

Full details: Linked Issues check

Explanation

The changes address all coding requirements in #464. SetupTile adds keyboard focus and Space activation. The closing card restores focus rings. SetupPermission.Action supplies permission-specific labels and input labels. The intro wordmark and progress indicator receive labels. Preset.accessibilityLabel(widgetSets:placement:) describes visible widgets for both placements and battery states. SetupAccessibilityTests covers these labels and key behavior.

Full details: Out of Scope Changes check

Explanation

The changed source files implement the keyboard and VoiceOver requirements in #464. The added tests verify those behaviors. The documentation describes the resulting controls. No unrelated change is established by the pull request summary.

Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between c9b75cf and 577f105.

Files selected for processing: 5

  • Sources/StableBar/SetupPreferences.swift
  • Sources/StableBar/SetupTour.swift
  • Sources/StableBar/SetupWindow.swift
  • Tests/StableBarTests/SetupAccessibilityTests.swift
  • docs/getting-started.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional comments: 1

Sources/StableBar/SetupTour.swift: 1

1134-1138: Trivial · Maintainability & Code Quality · Low value

Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.

Run the Space key activation and the accessibility action through the same path as a click.

A click clears focus first. It sets clearingFocus = true and focused = false, and then calls action(). The Space handler and .accessibilityAction call action() directly. Two results follow:

  • Space leaves the focus ring on the tile. That is probably intended for keyboard use.
  • For theme tiles, choose triggers the selected change. That change calls scroll.scrollTo with animation. A focus change calls the same scroll. This can start two competing scroll animations.

Document the difference, or extract a shared activate() helper so the paths stay consistent.

Also applies to: 1142-1142

Review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 3eb60c6 and 941ff22.

Files selected for processing: 5

  • Sources/StableBar/SetupPreferences.swift
  • Sources/StableBar/SetupTour.swift
  • Sources/StableBar/SetupWindow.swift
  • Tests/StableBarTests/SetupAccessibilityTests.swift
  • docs/getting-started.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Before and after

main at c9b75cf → this pull request at 577f105 · 71 screens drawn in one CI job · 0 changed

71 unchanged screens

docs/essentials-clock-settings-dark, docs/essentials-clock-settings-light, docs/essentials-dark, docs/essentials-light, docs/essentials-settings-dark, docs/essentials-settings-light, docs/hero-dark, docs/hero-light, docs/popups-dark, docs/popups-light, docs/settings-dark, docs/settings-light, docs/themes-dark, docs/themes-light, scenes/app-menu-popup-dark, scenes/app-menu-popup-light, scenes/apple-menu-settings-dark, scenes/apple-menu-settings-light, scenes/crowded-edit-bar-dark, scenes/crowded-edit-bar-light, scenes/dock-badges-bar-dark, scenes/dock-badges-bar-light, scenes/edit-bar-wide-group-dark, scenes/edit-bar-wide-group-light, scenes/essentials-clock-popup-dark, scenes/essentials-clock-popup-light, scenes/gruvbox-bar-dark, scenes/gruvbox-bar-light, scenes/horizontal-list-popup-dark, scenes/horizontal-list-popup-light, scenes/increase-contrast-bar-dark, scenes/increase-contrast-bar-light, scenes/increase-contrast-popup-dark, scenes/increase-contrast-popup-light, scenes/notch-flare-bar-dark, scenes/notch-flare-bar-light, scenes/reduce-transparency-bar-dark, scenes/reduce-transparency-bar-light, scenes/reduce-transparency-glass-bar-dark, scenes/reduce-transparency-glass-bar-light, scenes/settings-bar-dark, scenes/settings-bar-light, scenes/settings-bar-placement-dark, scenes/settings-bar-placement-light, scenes/settings-general-dark, scenes/settings-general-light, scenes/settings-general-spaces-dark, scenes/settings-general-spaces-light, scenes/settings-theme-dark, scenes/settings-theme-light, scenes/settings-uninstall-dark, scenes/settings-uninstall-failed-dark, scenes/settings-uninstall-failed-light, scenes/settings-uninstall-light, scenes/settings-widget-backgrounds-dark, scenes/settings-widget-backgrounds-light, scenes/setup-look-below-menu-bar-dark, scenes/setup-look-dark, scenes/setup-look-no-notch-dark, scenes/setup-permissions-dark, scenes/setup-placement-dark, scenes/setup-touches-dark, scenes/setup-try-dark, scenes/slider-end-stop-popup-dark, scenes/slider-end-stop-popup-light, scenes/starter-bar-dark, scenes/starter-bar-light, scenes/starter-edit-bar-dark, scenes/starter-edit-bar-light, scenes/update-popup-dark, scenes/update-popup-light

Visual review: 71 screens, none changed.

Make each tile one Tab stop without Keyboard navigation, using Space to choose.
Keep Return for the default button and clear mouse and initial tile focus.
Scroll focused themes into view, without animation when Reduce Motion is on.

Name permissions and preset widgets, distinguish the introduction, and restore
closing card focus rings. Keep title-based permission actions for shortcut checks
and include their visible titles for Voice Control.

Fixes #464
@M4n0x
M4n0x force-pushed the fix/464-setup-keyboard-voiceover branch from 941ff22 to 577f105 Compare November 11, 2026 07:59
@Seb-GRAF
Seb-GRAF merged commit 0944100 into main Nov 11, 2026
16 of 18 checks passed
@Seb-GRAF
Seb-GRAF deleted the fix/464-setup-keyboard-voiceover branch November 11, 2026 08:23
stablebar-releases Bot pushed a commit that referenced this pull request Nov 11, 2026
## [0.13.0](v0.12.0...v0.13.0) (2026-11-11)

### Features

* answer common questions and send feedback from a Help section ([#564](#564)) ([325083e](325083e))
* apply migrations to includes, packages and every screen setup's bar ([#539](#539)) ([6cc59f4](6cc59f4))
* check in setup that Workspaces can reach yabai or OmniWM ([#552](#552)) ([3a9ef7e](3a9ef7e)), closes [#463](#463)
* check the Switch to Desktop shortcuts in setup and Settings ([#551](#551)) ([92c11e1](92c11e1)), closes [#447](#447)
* follow Reduce Transparency and Increase Contrast ([#542](#542)) ([3ea111b](3ea111b))
* guide Accessibility access with a panel to drag StableBar into System Settings ([#559](#559)) ([29f000c](29f000c))
* pause scripts and providers while the displays sleep or the screen is locked ([#538](#538)) ([a09513d](a09513d))
* sign updates with an EdDSA key as well as the Developer ID ([#540](#540)) ([7e34d56](7e34d56))
* turn on Keep windows clear in setup when no window manager runs ([#553](#553)) ([a80b001](a80b001)), closes [#466](#466) [#439](#439)

### Bug Fixes

* follow Reduce Motion in setup's steps, theme row and tiles ([9c3f0c4](9c3f0c4)), closes [#465](#465)
* install packages when the configuration folder is a symbolic link ([#531](#531)) ([7e4f88b](7e4f88b)), closes [#530](#530)
* keep setup's later choices when the preset changes ([3318ae0](3318ae0)), closes [#461](#461)
* keep the website's Store review sheet inside its window ([9519645](9519645)), closes [#526](#526)
* leave windows alone until setup finishes ([#547](#547)) ([c9b75cf](c9b75cf)), closes [#466](#466)
* let a group wider than its tray scroll sideways while editing the bar in place ([#543](#543)) ([f6e6e25](f6e6e25))
* make setup's tiles, closing card and permission buttons work with the keyboard and VoiceOver ([#554](#554)) ([0944100](0944100)), closes [#464](#464)
* offer Keep notifications clear only on macOS 26 and later ([#550](#550)) ([5fd428a](5fd428a)), closes [#458](#458)
* offer the Notch preset only on Macs with a notch ([#548](#548)) ([3fef60f](3fef60f)), closes [#457](#457)
* open an app's own menu when Menu bar items can't draw its rows ([#541](#541)) ([24f16d7](24f16d7))
* shorten long errors in the bar's menus and open Status from them ([#536](#536)) ([5710a3e](5710a3e))
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included in version 0.13.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setup's tiles, closing card and permission buttons are hard to use with the keyboard and VoiceOver

2 participants