Skip to content

Commit

Permalink
Block Mover button: do not show focus styles on pointer interactions …
Browse files Browse the repository at this point in the history
…in Block toolbar
  • Loading branch information
ciampo committed Oct 19, 2022
1 parent 8c5ad2f commit 08daf3b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/components/src/toolbar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,15 @@
}

// Focus style.
&:focus::before {
&:focus-visible::before {
@include block-toolbar-button-style__focus();
}
// Fallback for browsers without :focus-visible support
@supports not selector(:focus-visible) {
&:focus::before {
@include block-toolbar-button-style__focus();
}
}

// Ensure the icon buttons remain square.
// This needs specificity.
Expand Down

0 comments on commit 08daf3b

Please sign in to comment.