Skip to content

Popup sliders, toggles, segmented controls, the chooser and text fields show no keyboard focus #517

Closed

Description

@M4n0x

What happens

Since #516, pressing Tab in a popup with macOS keyboard navigation on shows focus only on buttons and rows. These controls show nothing while they have focus:

  • sliders, including sliders with an end stop
  • toggles
  • segmented controls
  • the chooser button
  • text fields (input and search)

So Tab can land on a slider or a toggle, and the arrow keys or Space change it, without anything showing which control that is. A text field still shows its cursor.

Disabled rows in an app menu popup also take Tab focus but never highlight, so Tab seems to stop on nothing.

Steps to reproduce

  1. Turn on Keyboard navigation in System Settings › Keyboard.
  2. Open a popup with a slider, toggle, segmented control or chooser.
  3. Press Tab until focus reaches it. Nothing marks it, yet the arrow keys move it.

I didn't try these steps on a Mac. This comes from reading the code on main and from #516's own notes.

Expected

Every control in a popup shows Tab focus in a look that fits the popup, as #515 asked. Tab skips disabled menu rows.

Environment

  • main at 0e8ef0b, released in v0.12.0-beta.20261109161138.786
  • Renders below drawn on macOS 27.2

Diagnosis

  • PopupView turns off the system focus effect for the whole popup (Sources/StableBar/PopupView.swift:108). Apple's documentation says an outer focusEffectDisabled() wins over inner ones, so a control inside the popup can't turn its own ring back on.
  • fix: drop stray focus rings and show popup focus in the theme's hover look #516 gave buttons a replacement: their hover look, or FocusHighlight (PopupView.swift:869). Controls without a hover look got none: PopupSlider (:530), EndStopSlider (Sources/StableBar/EndStopSlider.swift:193), PopupToggle (:554), PopupInput (:569), PopupChooser (:592), PopupSegmented (:923) and the search field (:464). fix: drop stray focus rings and show popup focus in the theme's hover look #516's description lists them as not covered.
  • AppMenuRow hides its focus background for disabled entries (PopupView.swift:1110), but its button isn't .disabled, so Tab still stops on them.
  • A theme without a popup hover background draws hover in the popup's own background (Sources/StableBar/Configuration.swift:339). Among the bundled themes only Terminal sets none. There, focus on the buttons fix: drop stray focus rings and show popup focus in the theme's hover look #516 covered is invisible too.

Options for the look

Rendered offscreen from main with a temporary switch. In each image, one control is shown as focused.

  • A · macOS focus ring on these controls only, by moving focusEffectDisabled() from the popup onto the views that draw their own focus. It looks native, but it is system blue on every theme. The renders can't capture the real ring offscreen, so they draw a ring in the system's focus color around each control. The real ring may follow each control's shape more closely.
  • B · Ring in the theme's accent, drawn by StableBar in the popup's accent color. It fits every theme. In Built-in the accent is close to system blue, so A and B look alike there.
  • C · Theme's hover background behind the control, as FocusHighlight already does for buttons. It matches fix: drop stray focus rings and show popup focus in the theme's hover look #516, but it barely shows in Built-in's light popups and doesn't show at all in Terminal.

Built-in, light
Built-in, dark
Catppuccin, light
Catppuccin, dark

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    bug
    accessibility
    on Nov 9, 2026
  2. self-assigned this
    on Nov 16, 2026
  3. stablebar-releases commented on Nov 20, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.18.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

Metadata

Metadata

Assignees

Labels

accessibilitybugreleased

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions