bonny / WordPress-Simple-History

🔍🕵️‍♀️ WordPress audit log that track user changes in WordPress admin using a nice activity feed.
https://simple-history.com
311 stars 68 forks source link

Wrong colors for links #463

Closed bonny closed 2 weeks ago

bonny commented 2 months ago

The colors used by WordPress components and the colors used by the profile theme is not the same.

Reported here: https://wordpress.org/support/topic/wrong-color-for-links-since-5-0/

Possibly related: https://github.com/WordPress/gutenberg/issues/25282 https://github.com/WordPress/wordpress-develop/pull/386

Colors used by wp for links are: Default #2271b1

Then overridden in each color theme: css/colors/ectoplasm/colors.min.css ...

There are (only) 8 themes so maybe we can work with that.. There is a colors.scss file for each theme.

<body> gets class with theme: admin-color-ectoplasm

When using Gutenberg Components for example .components-button.is-link gets style color: var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))

could a solution be to add --wp-admin-theme-color inside our selector with a value of a dynamically added variable based on the current admin theme? 🤔