Skip to content
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## [`master`](https://github.com/elastic/eui/tree/master)

- Adjusted coloring of `EuiSideNav` to be more consistent across open states ([#3926](https://github.com/elastic/eui/pull/3926))

**Bug fixes**

- Fixed bug in `EuiBasicTable` not fully expanding tall rows (height > 1000px) ([#3855](https://github.com/elastic/eui/pull/3855))
Expand Down
23 changes: 14 additions & 9 deletions src/components/side_nav/_side_nav_item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
display: block;
width: 100%;
padding: $euiSizeXS / 2 0;
color: $euiColorFullShade; /* 2 */
color: $euiTextColor; /* 2 */

&.euiSideNavItemButton--isClickable {
&:hover .euiSideNavItemButton__label {
Expand All @@ -23,9 +23,13 @@
}

&.euiSideNavItemButton-isSelected {
.euiSideNavItemButton__icon {
fill: $euiColorPrimary;
}

.euiSideNavItemButton__label {
color: $euiColorPrimary;
font-weight: $euiFontWeightMedium;
font-weight: $euiFontWeightBold;
text-decoration: underline;
}
}
Expand All @@ -48,7 +52,7 @@
}

.euiSideNavItemButton__label {
color: $euiColorDarkShade;
color: $euiTitleColor;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
Expand Down Expand Up @@ -148,12 +152,13 @@
& > .euiSideNavItem__items {
margin-left: $euiSize;
}
}

.euiSideNavItem--hasChildItems {
& > .euiSideNavItemButton-isOpen {
.euiSideNavItemButton__label {
color: $euiColorFullShade;
}
.euiSideNavItemButton__icon {
fill: $euiTextSubduedColor;
}

.euiSideNavItemButton__label {
color: $euiTextSubduedColor;
}
}