MyStudio Free demo
Accessible dropdown menus without JS — follow-up - Printable Version

+- MyStudio Free demo (https://demo.mystudio.forumeze.com)
+-- Forum: Webmaster (https://demo.mystudio.forumeze.com/forum-15.html)
+--- Forum: Design & Development (https://demo.mystudio.forumeze.com/forum-17.html)
+--- Thread: Accessible dropdown menus without JS — follow-up (/thread-251.html)



Accessible dropdown menus without JS — follow-up - QuietQuokka - 09-02-2026

:has() finally lets me style parents without JavaScript, and support is good now.

Container queries changed how I build card layouts — the component adapts to its slot, not the viewport.

I design in the browser almost exclusively now; mockups only for client sign-off.


- ServerSage - 09-03-2026

(09-02-2026, 07:52 PM)QuietQuokka Wrote: :has() finally lets me style parents without JavaScript, and support is good now.
Container queries are great but I still add a media-query fallback.

I disagree slightly, but I can see where you are coming from.

Could not agree more.


- BinaryBen - 09-05-2026

Container queries are great but I still add a media-query fallback.

Could not agree more.

Nice thread, following for the replies.


- NimbleNora - 09-05-2026

Refactoring legacy CSS one component at a time is the only sane way.


- ByteBruce - 09-05-2026

CSS variables + one class toggle is my whole dark mode stack.

I disagree slightly, but I can see where you are coming from.