We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c78ece commit b41a3dfCopy full SHA for b41a3df
src/components/navbar/Navbar.module.css
@@ -48,7 +48,7 @@
48
& .mobileContent {
49
display: none;
50
overflow: scroll;
51
- &.mobileMenuOpen {
+ &[data-open=true] {
52
display: block;
53
}
54
background: var(--gray-0);
src/components/navbar/index.tsx
@@ -121,9 +121,8 @@ export default function Navbar({
121
</GridContainer>
122
<div
123
ref={mobileContentRef}
124
- className={classNames(s.mobileContent, {
125
- [s.mobileMenuOpen]: mobileMenuOpen,
126
- })}
+ className={s.mobileContent}
+ data-open={mobileMenuOpen}
127
>
128
<NavTree
129
className={s.navTree}
0 commit comments