Skip to content

Commit 4f9f8cc

Browse files
fix Issue2592
1 parent b1a22c8 commit 4f9f8cc

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

src/assets/sass/_global/_themes.scss

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ $themes: (
3232
iconDarkDisplay: none,
3333
iconLightDisplay: block,
3434
arrowBackground: $gray-neutral-light,
35+
beforeBackground: $turquoise
3536
),
3637
dark: (
3738
secondaryBackgroundColor: $gray-60,
@@ -42,5 +43,6 @@ $themes: (
4243
iconDarkDisplay: block,
4344
iconLightDisplay: none,
4445
arrowBackground: $gray-60,
46+
beforeBackground: $white
4547
),
4648
);

src/components/TopNav/MobileSubNav.module.scss

+22-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import "../../assets/sass/_global/fonts";
2+
@import "../../assets/sass/_global/themes";
23
@import "../../assets/sass/_global/utils";
34

45
.mobileSubNav {
@@ -28,7 +29,9 @@
2829

2930
.mobileSubNavHeader {
3031
@include button-reset;
31-
background: $teal;
32+
@include themify($themes) {
33+
background: themed('secondaryBackgroundColor');
34+
}
3235
width: 100%;
3336
height: 60px;
3437
display: flex;
@@ -38,7 +41,9 @@
3841

3942
span {
4043
@include Roboto-Regular;
41-
color: $white;
44+
@include themify($themes) {
45+
color: themed('secondaryTextColor');
46+
}
4247
font-size: 28px;
4348
line-height: 40px;
4449
}
@@ -50,20 +55,30 @@
5055
img {
5156
margin-left: 8px;
5257
}
58+
59+
path {
60+
@include themify($themes) {
61+
fill: themed('secondaryTextColor');
62+
}
63+
}
5364
}
5465

5566
.mobileSubNavContent {
5667
display: flex;
5768
flex-direction: column;
5869
padding: $base-unit * 3 $base-unit * 4;
59-
background: $teal;
70+
@include themify($themes) {
71+
background: themed('secondaryBackgroundColor');
72+
}
6073
border-top: 1px solid $teal-light;
6174
width: 100%;
6275
z-index: 999;
6376
position: absolute;
6477

6578
.mobileSubNavChild {
66-
color: $white;
79+
@include themify($themes) {
80+
color: themed('secondaryTextColor');
81+
}
6782
font-size: 18px;
6883
line-height: 40px;
6984
height: 40px;
@@ -81,7 +96,9 @@
8196
height: 30px;
8297
width: 3px;
8398
border-radius: 1.5px;
84-
background: $white;
99+
@include themify($themes) {
100+
background: themed('beforeBackground');
101+
}
85102
display: inline-block;
86103
margin-right: 10px;
87104
}

0 commit comments

Comments
 (0)