Skip to content

Commit ada3f89

Browse files
t3dotggclaude
andcommitted
fix(web): closing Settings or Usage no longer rings the sidebar button
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 03e01bf commit ada3f89

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎apps/web/src/components/AppRouteModal.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export function AppRouteModal({ label, children }: { label: string; children: Re
1818
// Text selection that ends on the backdrop is not a dismissal.
1919
const backdropPressRef = useRef(false);
2020
// Focus the surface, not its first control: no stray focus ring, no phone keyboard.
21+
// On close, leave focus alone; returning it to the opener paints a focus ring.
2122
const popupRef = useRef<HTMLDivElement>(null);
2223

2324
return (
@@ -47,6 +48,7 @@ export function AppRouteModal({ label, children }: { label: string; children: Re
4748
<DialogPrimitive.Popup
4849
ref={popupRef}
4950
initialFocus={popupRef}
51+
finalFocus={false}
5052
aria-label={label}
5153
data-slot="dialog-popup"
5254
data-app-modal=""

0 commit comments

Comments
 (0)