Repository navigation
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
Reviewed by Cursor Bugbot for commit da3bbd6. Configure here.
🦋 Changeset detectedLatest commit: a5feb64 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Signed-off-by: jay23606 <4602056+jay23606@users.noreply.github.com>
Signed-off-by: jay23606 <4602056+jay23606@users.noreply.github.com>
Signed-off-by: jay23606 <4602056+jay23606@users.noreply.github.com>
|
Both inline comments were already addressed on this branch: the unit test is removed and the focus check is in the Playwright spec for light and dark. This round needed no further code change. |
Chromatic Storybook
Built from commit: Statuses as of the end of the run. The build link shows the live review state. |

Bug
SidebarCollapsibleItem(andCollapsible.Trigger) gives no visible focus ring on keyboard focus. The trigger is anEmptyButton, which setsoutline: noneand has no:focus-visiblestyle. The chevron is also hidden until hover, so keyboard users get no cue that focus is on the expand control.Change
Collapsible.module.css: add a:focus-visibleoutline on.collapsible__trigger, and reveal the chevron while the trigger is focused.tests/display/sidebar-collapsible-item.spec.ts: add keyboard focus visual checks for the trigger in light and dark, followingtests/forms/checkbox.spec.ts(click body, Tab,toBeFocused, screenshot). Also adds an Enter/Space toggle test.Testing
sidebar-collapsible-itemis the regression check:bash .scripts/bash/playwright-docker sidebar-collapsible-item. The focus snapshots aresidebar-collapsible-item-focus-light.pngandsidebar-collapsible-item-focus-dark.png.Not tested
Regression test: focus snapshot cases in
tests/display/sidebar-collapsible-item.spec.ts, light and dark.Fixes #1306
Note
Low Risk
CSS-only focus styling plus display tests; no auth, data, or API changes.
Overview
Fixes missing keyboard affordance on
Collapsible/SidebarCollapsibleItemexpand triggers by styling:focus-visibleon.collapsible__trigger: a 2px outline using--click-global-color-outline-default(with negative offset so clipped parents don’t hide the ring) and visible chevron via[data-trigger-icon]while focused—not only on hover.Playwright coverage adds Enter/Space toggle behavior on the playground story and light/dark screenshot cases when Tab focuses the closed-main trigger.
Reviewed by Cursor Bugbot for commit a5feb64. Bugbot is set up for automated code reviews on this repo. Configure here.