Accessible dropdown menus without JS -
LunarLily - 11-18-2026
:has() finally lets me style parents without JavaScript, and support is good now.
I design in the browser almost exclusively now; mockups only for client sign-off.
Container queries changed how I build card layouts — the component adapts to its slot, not the viewport.
Code:
:root { --accent: #4f7cff; }
— CSS variables made my theming life so much easier.
Would love to hear how you all handle this.
-
KernelKate - 11-20-2026
(11-18-2026, 05:34 AM)LunarLily Wrote: :has() finally lets me style parents without JavaScript, and support is good now.
:has() feels like cheating compared to what we used to do.
CSS variables + one class toggle is my whole dark mode stack.
Good point, I had not thought of it that way.
-
DevDan - 11-20-2026
I still reach for Bootstrap when a client needs to maintain it afterwards.
Bumping this because I ran into the same thing today.
-
CodeWizard - 11-21-2026
CSS variables + one class toggle is my whole dark mode stack.
-
MovieMaven - 11-23-2026
I still reach for Bootstrap when a client needs to maintain it afterwards.
Refactoring legacy CSS one component at a time is the only sane way.
-
RetroRex - 11-23-2026
(11-23-2026, 03:02 AM)MovieMaven Wrote: I still reach for Bootstrap when a client needs to maintain it afterwards.
I still reach for Bootstrap when a client needs to maintain it afterwards.
CSS variables + one class toggle is my whole dark mode stack.
-
ServerSage - 11-25-2026
CSS variables + one class toggle is my whole dark mode stack.
Thanks for sharing, saved me a lot of time.
-
QuietQuokka - 11-26-2026
I still reach for Bootstrap when a client needs to maintain it afterwards.
Container queries are great but I still add a media-query fallback.
Nice thread, following for the replies.