From c97587e3f9af303461883c89d9ecae0628e12429 Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Wed, 7 Aug 2024 22:01:54 +0900 Subject: [PATCH] Block Autocompleter: Force icon color to text color when item is selected (#61376) * Block Autocompleter: Force icon color to text color when item is selected * Don't rely on css class Co-authored-by: t-hamano Co-authored-by: ellatrix Co-authored-by: jasmussen Co-authored-by: tyxla --- packages/block-editor/src/autocompleters/style.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/block-editor/src/autocompleters/style.scss b/packages/block-editor/src/autocompleters/style.scss index 5380ddcfbe48b2..43acc4efc16a5e 100644 --- a/packages/block-editor/src/autocompleters/style.scss +++ b/packages/block-editor/src/autocompleters/style.scss @@ -4,6 +4,10 @@ .block-editor-block-icon { margin-right: $grid-unit-10; } + + &[aria-selected="true"] .block-editor-block-icon { + color: inherit !important; + } } .block-editor-autocompleters__link {