♿️(frontend) set focus style globally

Lot of elements did not have a focus style, or the
focus style was not consistent. We now have a global focus
style that is applied to all elements that are
focusable. The style is still overridable for
specific elements, so buttons and other elements
still have their own focus style.
We will have probably to improve the focus style
in the future of some elements, but this is a
good start.
This commit is contained in:
Anthony LC
2026-07-29 10:53:52 +02:00
parent 1644916995
commit 4a72d5c59d
@@ -24,6 +24,12 @@ body > #__next > .c__app > div:has(> .c__loader) {
box-sizing: border-box;
}
*:focus-visible {
outline: 2px solid var(--c--globals--colors--brand-400);
outline-offset: calc(-1 * var(--c--globals--spacings--4xs));
border-radius: var(--c--globals--spacings--2xs);
}
main ::-webkit-scrollbar,
.ReactModalPortal ::-webkit-scrollbar {
width: 20px;