Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit 2725889

Browse files
authored
fix: ensure dark mode mobile button shows close icon (#595)
1 parent 606a534 commit 2725889

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/components/Header.module.scss

+9-7
Original file line numberDiff line numberDiff line change
@@ -257,18 +257,20 @@ div.exists-in-active-mobile-menu {
257257

258258
.mobile-menu-button {
259259
background-image: url('../images/icon-menu-light.svg');
260-
261-
div.mobile-menu-active & {
260+
}
261+
262+
div.mobile-menu-active {
263+
.mobile-menu-button {
262264
background-image: url('../images/icon-menu-close-light.svg');
263265
}
266+
267+
.header-dark-mode-toggle svg {
268+
fill: transparent;
269+
stroke: var(--color-neutrals-800);
270+
}
264271
}
265272

266273
.primary-header-nav-link svg {
267274
display: none;
268275
}
269-
270-
.mobile-menu-active .header-dark-mode-toggle svg {
271-
fill: transparent;
272-
stroke: var(--color-neutrals-800);
273-
}
274276
}

0 commit comments

Comments
 (0)