From ad127b7fed9f81004fbb08cc8bd45559139f7368 Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Wed, 19 Oct 2022 18:44:22 +0200 Subject: [PATCH] Block Mover button: do not show focus styles on pointer interactions in List view --- packages/block-editor/src/components/list-view/style.scss | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/list-view/style.scss b/packages/block-editor/src/components/list-view/style.scss index ce5539dbe3aa7..a4968d2d37b71 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 {