Skip to content

Commit a390eb2

Browse files
authored
fix: z-index of open nav (#8029)
* fix z-index of open nav * fix z-index of color switcher
1 parent 435cc5b commit a390eb2

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/styles/color-switcher.scss

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@
2323
&:hover {
2424
background-color: var(--amplify-colors-primary-10);
2525
}
26-
}
27-
.amplify-togglebutton--pressed {
28-
color: var(--amplify-colors-font-primary);
29-
border-color: var(--amplify-colors-neutral-100);
30-
background-color: var(--amplify-colors-primary-10);
26+
&.amplify-togglebutton--pressed {
27+
color: var(--amplify-colors-font-primary);
28+
border-color: var(--amplify-colors-neutral-100);
29+
background-color: var(--amplify-colors-primary-10);
30+
z-index: 1;
31+
}
3132
}
3233
}

src/styles/layout.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
position: fixed;
137137
top: 0;
138138
width: 100%;
139-
z-index: 1;
139+
z-index: 2;
140140
}
141141

142142
@keyframes menu {

0 commit comments

Comments
 (0)