-
Notifications
You must be signed in to change notification settings - Fork 805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin Color Schemes: Update color schemes to match Calypso #40908
base: trunk
Are you sure you want to change the base?
Conversation
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Follow this PR Review Process:
Still unsure? Reach out in #jetpack-developers for guidance! Mu Wpcom plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Wpcomsh plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Any reason not to use core as the standard? |
@@ -1,3 +1,52 @@ | |||
@import "variables"; | |||
@import "../admin"; | |||
@import "sidebar-notice"; | |||
|
|||
// Specific overrides for this color scheme. | |||
.admin-color-classic-bright { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're going to remove Calypso version of the single-site view (nav unification) as part of the Untangling Calypso project in the future. Given that, is it that worth it to maintain this kind of override (for Classic Bright and Powder Snow)?
I'd imagine this could cause some confusion for future devs 🤔
For the record, I'm not sure for this set of colors, which comes first, Calypso's or wp-admin's. 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC these were designed for Calypso and ported back to wp-admin, which is probably why they don't slot in nicely with the color theming system. But I don't think that's a reason get rid of them - I'm always a fan of color schemes (I should update that plugin 😅).
The generated CSS assumes the admin bar and admin menu use the same background & text colors, and _overrides.scss
handles setting the background color for the top bar ($masterbar-background
), but does not change the text. So in Classic Bright & Powder Snow, when the admin menu dropdowns are updated to dark text on light background, this causes the admin bar dropdowns to be dark text on a (overridden) dark background.
So this override is necessary, somehow. It could be moved to _overrides.scss
, but with only two affected I opted to not add even more variables + redundant CSS to all schemes.
Another option could be to update the style of the color schemes, so that the admin bar and admin menu dropdowns both use the same background & dropdown colors, then the colors should inherit correctly from the Sass variables. But that seemed like a design decision, and I was just aiming to replicate the calypso look.
See Automattic/wp-calypso#94471 — Many of the custom admin color schemes are slightly off in wp-admin, compared to the Calypso versions. This seems to be the case when a color scheme has a different color admin bar and admin menu (sidebar) - the core schemes are set up to use the same backgrounds and submenu colors. There are also some other minor issues with highlight colors.
Proposed changes:
$masterbar-submenu-background
and$masterbar-submenu-background-alt
for the admin bar submenu colors, so that the admin menu can use different colors._admin.scss
for all assorted menu cases.Screenshots
The first two in each row are the current behavior, so you can see how the proposed change will apply the Calypso versions. The proposed change column also shows the admin bar and admin menu submenus.
Other information:
Does this pull request change what data or activity we track or use?
No
Testing instructions:
https://yoursite.wordpress.com/wp-admin/edit.php
andhttps://wordpress.com/posts/yoursite
)Note: I haven't been able to get the jetpack env set up locally, so I couldn't run any of the precommit checks — let me know if there's anything I'm missing here :)magically it worked today 🎉