🐛 Fix focus ring on Button

Replace the outline-based focus style with a box-shadow ring.
Safari clips outlines on flex children, leaving the focus indicator
partially invisible.
This commit is contained in:
Aksel Mini committed 2026-08-28 08:50:00 +02:00
1 parent 9c8f55f5cf
commit 0cedb5320f
1 file changed
+4 -2
+4 -2
View File
@@ -72,9 +72,11 @@
outline: none;
}
/* Use a box-shadow ring instead of outline: Safari clips outlines
on children with overflow in flex containers. */
.navds-button:focus-visible {
outline: 2px solid var(--a-border-focus);
outline-offset: 2px;
outline: none;
box-shadow: 0 0 0 3px var(--a-border-focus);
}
.navds-button:disabled,