Skip to content

Commit

Permalink
List view: fix miscolored icons (#65707)
Browse files Browse the repository at this point in the history
* List view: fix miscolored icons

* Add forced-colors media query

Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: tyxla <tyxla@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: ciampo <mciampini@git.wordpress.org>
Co-authored-by: jameskoster <jameskoster@git.wordpress.org>
  • Loading branch information
6 people authored and getdave committed Oct 1, 2024
1 parent b4c11b2 commit 8fe5c49
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/block-editor/src/components/list-view/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@
&:hover {
color: var(--wp-admin-theme-color);
}

svg {
fill: currentColor;
// Optimizate for high contrast modes.
// See also https://blogs.windows.com/msedgedev/2020/09/17/styling-for-windows-high-contrast-with-new-standards-for-forced-colors/.
@media (forced-colors: active) {
fill: CanvasText;
}
}
}

&:not(.is-selected) .block-editor-list-view-block-select-button {
Expand Down

0 comments on commit 8fe5c49

Please sign in to comment.