-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #761 from Automattic/patch/sidebar-nav-styles
Override Nav styles after GB 11.6.0 changes
- Loading branch information
Showing
5 changed files
with
145 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,59 @@ | ||
// Add styles here. | ||
/* | ||
* <-------- Start Temporary Code --------> | ||
* | ||
* A change to Gutenberg base Navigation component in https://github.com/WordPress/gutenberg/pull/34885/ | ||
* requires these overrides. The solution exists in WooCommerce Admin 2.8.0 and WooCommerce 5.9, but is not due | ||
* to reach merchants until November 9, 2021 so these styles will need to exist until then. | ||
* | ||
* Criteria for removal | ||
* 1. WooCommerce 5.9 has been released. | ||
* 2. WooCommerce 5.9 includes WooCommerce Admin 2.8.0 or later. | ||
*/ | ||
.woocommerce-navigation .woocommerce-navigation__wrapper { | ||
.components-navigation__item { | ||
.components-button { | ||
opacity: 1; | ||
} | ||
|
||
&:not( :hover ) { | ||
.components-button { | ||
color: #949494; | ||
} | ||
} | ||
&:hover { | ||
.components-button { | ||
color: #ddd; | ||
} | ||
} | ||
&.is-active { | ||
.components-button { | ||
color: #fff; | ||
} | ||
} | ||
} | ||
|
||
.components-navigation__menu-title, | ||
.components-navigation__group-title { | ||
color: #f0f0f0; | ||
opacity: 1; | ||
} | ||
|
||
.components-navigation__back-button { | ||
color: #949494; | ||
opacity: 1; | ||
|
||
&, | ||
span { | ||
font-size: 13px; | ||
line-height: normal; | ||
} | ||
|
||
&:hover, | ||
&:hover:not( :disabled ) { | ||
color: #ddd; | ||
} | ||
} | ||
} | ||
/* | ||
* <-------- End Temporary Code --------> | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters