Skip to content

Commit

Permalink
fix(editor): Use :focus-visible instead for :focus for buttons (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MiloradFilipovic authored and riascho committed Sep 23, 2024
1 parent a848291 commit b43f934
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/design-system/src/components/N8nButton/Button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
}
}

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

0 comments on commit b43f934

Please sign in to comment.