-
Notifications
You must be signed in to change notification settings - Fork 800
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
Override Modern color scheme's highlight color to Blueberry 2 #39748
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! |
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
3791f81
to
4e182f4
Compare
Color can work, sure, I'd like to defer to another developer like Riad on whether this is the right approach. My instinct is that this is a local hack, that can be okay to have temporarily assuming we contribute the change to WordPress core itself as well. So it might need a core trac patch as well. |
Same thought as @jasmussen Can we make this a core patch? I was also checking this with @richtabor and he mentioned the possibility of not using a third color (or just reusing the same blue color for second and third colors) |
@@ -0,0 +1,95 @@ | |||
$menu-submenu-focus-text: #7b90ff !important; |
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.
Is the !important necessary here?
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.
I was afraid it loses to Core's, but it turns out it works out just fine, removed!
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.
LGTM
@youknowriad @richtabor I tried reusing the second color but it makes the text somehow unreadable on hover due to bad contrast against the black background, see: I'm not a designer but my gut says to keep the third color, what do you think?
|
Yup, I'll make an upstream Core patch after we agree on the colors. In dotcom, we need to update the color scheme on Calypso as well anyway, so I think it's better to update dotcom first (we can control the deployment timing). Then after Core patch is merged and shipped, we revert the hack. |
Do you have a process for tracking this, so the drift doesn't build up over time? |
IMHO it would be better to update Core first to avoid inconsistency because it's not a bug and it might take time to discuss whether it makes sense to change the color of Modern in Core 🤔 People may love to use “Modern” because of the green color... |
If we want to reuse the Blueberry, we could consider using it as a background color + white font, as we have it in an active state on the navigation items. It ensures consistency and accessibility, but it's quite heavy on sight as an interaction. So I am not sure 100%, but just as an alternative: |
Thanks @nuriapenya for the alternative solution! I just checked all existing color schemes, and I found none of them have this pattern of using the same hover background color as the active menu background color. So, not sure if we want this 🤔 |
Added a Core patch: https://core.trac.wordpress.org/ticket/62219 @youknowriad / @jasmussen let me know if this patch is good; I've never landed a patch in Core! 😄
I'll keep this parent issue: open until that patch is accepted, and most likely will just close out this PR soon. |
Patch is great, we might want to wait a few days to land it because I believe we're in beta period for 6.7 and we didn't branch yet (create a dedicated branch for 6.7) which means trunk is closed for enhancements at the moment. |
Related to: pfsHM7-1qe-p2#comment-1787
Proposed changes:
We would like to propose updating the Modern color scheme, so that the highlight color, which is present in the admin bar and sidebar, becomes blue (Blueberry 2) instead of green:
The color is chosen to follow the navbar menu item's active state color in the WordPress.org website:
This PR is to have the change faster in dotcom. If we like it, we can propose the change back to dotorg.
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
wp-admin/profile.php
.