Skip to content

Commit f7d5f65

Browse files
sserrataclaude
andcommitted
fix(palette-picker): hide in mobile top bar via media query
The component already returns null for mobile={true} (drawer), but Docusaurus also renders right-side navbar items in the collapsed mobile top bar without that prop. Hide .root below 996px to match Docusaurus's own navbar collapse breakpoint. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 09c48c6 commit f7d5f65

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

demo/src/components/PalettePicker/styles.module.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,10 @@
102102
flex-shrink: 0;
103103
color: var(--ifm-color-primary);
104104
}
105+
106+
/* Hide in the mobile top bar — Docusaurus collapses the navbar at 996px */
107+
@media (max-width: 996px) {
108+
.root {
109+
display: none;
110+
}
111+
}

0 commit comments

Comments
 (0)