Skip to content
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

Nav-Unification: Ported wp-admin schemes issues on site selector badges #47295

Closed
mreishus opened this issue Nov 10, 2020 · 5 comments · Fixed by #47699
Closed

Nav-Unification: Ported wp-admin schemes issues on site selector badges #47295

mreishus opened this issue Nov 10, 2020 · 5 comments · Fixed by #47699
Assignees
Labels
[Feature] Calypso & wp-admin Navigation All navigation in Calypso and wp-admin, and the unified transitions between the two. [Type] Bug When a feature is broken and / or not performing as intended

Comments

@mreishus
Copy link
Contributor

mreishus commented Nov 10, 2020

  • Choose a color scheme ported from Nav Unification, like "blue"
  • Visit calypso with nav-unification flag turned on.
  • Go to site selector and find a private site

2020-11-10_15-34

Expected: Text to be readable

Reference Issues

@mreishus mreishus self-assigned this Nov 10, 2020
@mreishus mreishus added the [Feature] Calypso & wp-admin Navigation All navigation in Calypso and wp-admin, and the unified transitions between the two. label Nov 10, 2020
@mreishus
Copy link
Contributor Author

Doesn't happen with nav unification off. Caused by this rule:

.site__badge {
background: var( --color-sidebar-text );
}

@mreishus
Copy link
Contributor Author

Without Rule Added:

background: var(--color-sidebar-menu-hover-background);
color: var(--color-sidebar-menu-hover-text);    

With rule mentioned above:

background: var( --color-sidebar-text ); 
color: var(--color-sidebar-menu-hover-text);   

So it's only legible if the hover text is a different color than the sidebar text; I don't think that's a good way to go, since some themes only change the background on hover, not the text.

@mreishus
Copy link
Contributor Author

mreishus commented Nov 10, 2020

On the default theme, I see this before and after adding the rule?

Before rule added
2020-11-10_17-08

After rule added
2020-11-10_17-07

I guess the intention was to change the BG to white? I'm not sure how to do that currently while maintaining theme compatibility. My current instinct is to remove the rule, the before pic looks fine to me. Any suggestions here?

@mreishus mreishus removed their assignment Nov 10, 2020
@mreishus
Copy link
Contributor Author

@cpapazoglou Any opinions or ideas?

@cpapazoglou
Copy link
Contributor

It is actually a grey background to match the wp-admin
.
Since this element is new to wp-admin, let's do it the other way round. Remove the rule from calypso, and make sure we adjust wp-admin. Also, as it seems now, we need to consider the color-schemes for all new elements added to wp-admin 😧!
eg site-switcher, site card

@obenland obenland added the [Type] Bug When a feature is broken and / or not performing as intended label Nov 16, 2020
@cpapazoglou cpapazoglou self-assigned this Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Calypso & wp-admin Navigation All navigation in Calypso and wp-admin, and the unified transitions between the two. [Type] Bug When a feature is broken and / or not performing as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants