Skip to content

[Bug]: SidebarCollapsibleItem shows no keyboard focus and hides its expand chevron until hover #1306

Open

Description

@kachdan

What happened?

Tabbing to a SidebarCollapsibleItem, focus lands on its 16 by 16 expand trigger, but nothing on screen shows it, light and dark.

  • The trigger is an EmptyButton, which sets outline: none and has no :focus-visible style
  • The chevron is visibility: hidden and only :hover on the header shows it (Collapsible.module.css lines 5 to 16), so with a keyboard there's no ring and no chevron, nothing says focus is there or that the row expands

Expected: a visible focus ring on the trigger (WCAG 2.4.7 Focus Visible), and some way to see the row expands without a mouse.

The ring looks like the same kind of fix as #1291. EmptyButton is also the base of CrossButton, the close button in Dialog and Flyout, so a fix there would reach those too, I haven't checked those yet. The hover only chevron looks intentional from #413 and #424, so that part is a design question. #1189 and #1190 add aria-expanded and a name, which covers screen readers but not the visual side.

Component(s) affected

SidebarCollapsibleItem

How to reproduce

  1. Open the ClosedMain story
  2. Click the preview background and press Tab
  3. Hover the row to compare, the chevron only shows up then
  4. Switch the theme to dark and repeat

Click UI Version

0.16.0

Browser(s)

Chrome

Operating system

macOS

Is this a regression?

No, never worked as far as I know

Last working version (if regression)

No response

Screenshots or recording

Today on focus, today on hover, and the proposed state, light and dark

Click UI · Sidebar collapsible focus

Visual / UX checklist

  • Checked in both light and dark mode (if applicable)
  • Checked at different viewport sizes (if applicable)
  • Checked with keyboard navigation (if applicable)
  • Checked for visual regressions in related components

Activity

  1. added
    bug
    on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions