Skip to content

Commit 92cd3a4

Browse files
committed
Fix for incorrect class for styling navtext
1 parent 7495c5c commit 92cd3a4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

examples/Styled/StyledSideNav.jsx

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import styled from 'styled-components';
21
import SideNav, {
32
Toggle,
43
Nav,
@@ -7,6 +6,8 @@ import SideNav, {
76
NavText
87
} from '../SideNav';
98

9+
import styled from 'styled-components';
10+
1011
// SideNav
1112
const StyledSideNav = styled(SideNav)`
1213
background-color: #fff;
@@ -67,7 +68,7 @@ const StyledNav = styled(Nav)`
6768
color: #666;
6869
}
6970
}
70-
[class*="sidenav-nav-text--"] {
71+
[class*="navtext--"] {
7172
&, > * {
7273
color: #222;
7374
}
@@ -82,11 +83,9 @@ const StyledNav = styled(Nav)`
8283
[class*="navtext--"] {
8384
&, > * {
8485
color: #db3d44;
86+
font-weight: 700;
8587
}
8688
}
87-
[class*="sidenav-nav-text--"] {
88-
font-weight: 700;
89-
}
9089
}
9190
}
9291
`;

0 commit comments

Comments
 (0)