diff --git a/src/components/forms.scss b/src/components/forms.scss index 1eba7a5..a0037de 100644 --- a/src/components/forms.scss +++ b/src/components/forms.scss @@ -90,3 +90,22 @@ :-moz-ui-invalid { box-shadow: none; } + +:where(a, + button, + input, + select, + textarea, + [tabindex]:not([tabindex="-1"])):focus-visible { + outline: 2px solid currentColor; + outline-offset: 2px; +} + +:where(a, + button, + input, + select, + textarea, + [tabindex]:not([tabindex="-1"])):focus:not(:focus-visible) { + outline: none; +} \ No newline at end of file