Skip to content

Commit

Permalink
Block Autocompleter: Force icon color to text color when item is sele…
Browse files Browse the repository at this point in the history
…cted (#61376)

* Block Autocompleter: Force icon color to text color when item is selected

* Don't rely on  css class

Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: ellatrix <ellatrix@git.wordpress.org>
Co-authored-by: jasmussen <joen@git.wordpress.org>
Co-authored-by: tyxla <tyxla@git.wordpress.org>
  • Loading branch information
5 people committed Aug 7, 2024
1 parent ab103f2 commit c97587e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/block-editor/src/autocompleters/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

1 comment on commit c97587e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in c97587e.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/10284833623
📝 Reported issues:

Please sign in to comment.