diff --git a/packages/block-editor/src/components/list-view/style.scss b/packages/block-editor/src/components/list-view/style.scss index ce5539dbe3aa7f..a4968d2d37b714 100644 --- a/packages/block-editor/src/components/list-view/style.scss +++ b/packages/block-editor/src/components/list-view/style.scss @@ -261,9 +261,15 @@ outline: none; } - &: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(); + } + } // Focus and toggle pseudo elements. &::before {