Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
Fix wc-admin nav styles after GB 11.6.0 changes (#7771)
Browse files Browse the repository at this point in the history
* Fix wc-admin nav styles after GB 11.6.0 changes

* log

* Update changelogs/fix-nav-style

Co-authored-by: Joshua T Flowers <[email protected]>

* Hover fix for back button

* Merge styles with existing

* Fix back button size

* fix whitespace issues

Co-authored-by: Joshua T Flowers <[email protected]>
Co-authored-by: Paul Sealock <[email protected]>
  • Loading branch information
3 people authored Oct 12, 2021
1 parent 4cc9145 commit 897f6dc
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
4 changes: 4 additions & 0 deletions changelogs/fix-nav-style
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: Fix

Fixed navigation menu text color after Gutenberg 11.6.0 #7771
44 changes: 44 additions & 0 deletions client/navigation/components/container/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
display: grid;
grid-template-rows: min-content 1fr;
height: 100%;
}

.woocommerce-navigation .woocommerce-navigation__wrapper {
h2 > span {
width: 100%;
}
Expand All @@ -20,6 +22,26 @@
.components-navigation__item {
margin-bottom: 0;

.components-button {
opacity: 1;
}

&:not(:hover) {
.components-button {
color: #949494;
}
}
&:hover {
.components-button {
color: #ddd;
}
}
&.is-active {
.components-button {
color: #fff;
}
}

/*
* <-------- Start Temporary Code -------->
*
Expand Down Expand Up @@ -71,4 +93,26 @@
padding: $gap $gap-smaller $gap-small $gap-smaller;
}
}

.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;
}
}
}

0 comments on commit 897f6dc

Please sign in to comment.