fix(editor): Use :focus-visible instead for :focus for buttons (#10921)

This commit is contained in:
Milorad FIlipović 2024-09-23 10:17:41 +02:00 committed by GitHub
parent a2237d128f
commit bf28d0965c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,7 +53,7 @@
} }
} }
&:focus:not(:active, .active) { &:focus-visible:not(:active, .active) {
color: $button-focus-font-color unquote($important); color: $button-focus-font-color unquote($important);
border-color: $button-focus-border-color unquote($important); border-color: $button-focus-border-color unquote($important);
background-color: $button-focus-background-color unquote($important); background-color: $button-focus-background-color unquote($important);
@ -68,7 +68,7 @@
&, &,
&:hover, &:hover,
&:active, &:active,
&:focus { &:focus-visible {
color: $button-disabled-font-color; color: $button-disabled-font-color;
border-color: $button-disabled-border-color; border-color: $button-disabled-border-color;
background-color: $button-disabled-background-color; background-color: $button-disabled-background-color;
@ -83,7 +83,7 @@
&, &,
&:hover, &:hover,
&:active, &:active,
&:focus { &:focus-visible {
color: $button-loading-font-color; color: $button-loading-font-color;
border-color: $button-loading-border-color; border-color: $button-loading-border-color;
background-color: $button-loading-background-color; background-color: $button-loading-background-color;