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: consolidate color-sidebar-menu-hover and -text variable #47294

Merged
merged 1 commit into from
Nov 11, 2020

Conversation

mreishus
Copy link
Contributor

Background

This is relatively straightforward and an easy change with no downsides, in my opinion.

  • This is considering the color of text when hovering over sidebar items.
  • Before we started the nav-unification project, calypso color schemes used color-sidebar-menu-hover-text.
  • When we first added nav unification styles, we defined two variables, with the same color value:
    • color-sidebar-menu-hover-text
      • This matches the calypso variable, but wasn't used anywhere.
    • color-sidebar-menu-hover
      • This was a new variable that only existed in nav unification.

Changes proposed in this Pull Request

  • Change all references of color-sidebar-menu-hover to color-sidebar-menu-hover-text.
  • Remove all theme definitions of color-sidebar-menu-hover.
    • The existing definitions of color-sidebar-menu-hover-text will work in their place. All themes had the same values for both.

Benefits

  • One less variable
  • Less changes needed to calypso schemes when porting to nav-unification calypso.

Testing instructions

Visit calypso with nav unification turned on, http://calypso.localhost:3000/?flags=nav-unification. Hovering text should still work (in most themes it's white, but it's blue in the default nav unification theme).

2020-11-10_15-11

Reference Issues

@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 mreishus self-assigned this Nov 10, 2020
@matticbot
Copy link
Contributor

@mreishus mreishus requested a review from a team November 10, 2020 21:21
@matticbot matticbot added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Nov 10, 2020
@matticbot
Copy link
Contributor

This PR does not affect the size of JS and CSS bundles shipped to the user's browser.

Generated by performance advisor bot at iscalypsofastyet.com.

Copy link
Contributor

@frontdevde frontdevde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! Tested as per testing instructions. LGMT 👍

@mreishus mreishus merged commit febfdad into master Nov 11, 2020
@mreishus mreishus deleted the fix/consolidate-nav-unification-vars-1 branch November 11, 2020 15:10
@matticbot matticbot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Nov 11, 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants