Skip to content

Commit 77903fc

Browse files
committed
fix: firefox bug
1 parent f5689dd commit 77903fc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

app/assets/main.css

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,13 @@ body {
181181
line-height: 1.6;
182182
}
183183

184-
*:focus-visible {
185-
outline: 2px solid var(--accent);
186-
outline-offset: 2px;
184+
*:focus-visible,
185+
:-moz-focusring {
186+
/* weird Firefox behavior makes it necessary to add `!important`
187+
or otherwise the selector would need to be more specific,
188+
which it explicitly should note be. */
189+
outline: 2px solid var(--accent) !important;
190+
outline-offset: 2px !important;
187191
}
188192

189193
/* Reset dd margin (browser default is margin-left: 40px) */

0 commit comments

Comments
 (0)