Administration: Improve filter link visibility in forced-colors mode.#12107
Administration: Improve filter link visibility in forced-colors mode.#12107nimesh-xecurify wants to merge 1 commit into
Conversation
This ensures that the current filter link is visually distinguishable when a high-contrast theme is enabled by using the `Highlight` system color for the bottom border.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
Dervish12
left a comment
There was a problem hiding this comment.
Looks good. The forced-colors: active media query is the correct approach for Windows High Contrast mode, and using the Highlight system color for the active filter border is exactly what the spec recommends.
One small suggestion: might be worth also setting color: LinkText on .filter-links .current inside the forced-colors block, so the text also uses the system link color for stronger visual distinction. Not a blocker though — the border alone is a meaningful improvement.
Tested locally, works as expected.
This ensures that the current filter link is visually distinguishable when a high-contrast theme is enabled by using the
Highlightsystem color for the bottom border.Trac ticket: https://core.trac.wordpress.org/ticket/65419
Use of AI Tools
N / A