DEV Community

Discussion on: You Probably Don't Need Media Queries Anymore

Collapse
 
facundocorradini profile image
Facundo Corradini

Great article! Intrinsic sizing is awesome, and definitely a better approach for most use-cases.

Nowadays the main use for media queries is when you need to completely change how an element works. For instance, switch your navigation to a hamburger menu on mobile.

Also, there's much more to media queries than just screen sizes. Things like user preferences (reduced motion, color scheme, etc) are relatively new additions that takes a great role for accessibility. And a whole bunch of awesome new stuff is coming right up ;)

We need media queries more than ever, just not for sizing

Collapse
 
kathryngrayson profile image
Kathryn Grayson Nanz

This is a super fair point!! I was laser-focused on the responsiveness use case when writing this article, but user preferences and accessibility are really good examples of where media queries still shine. Thank you for adding this comment 😊

Some comments have been hidden by the post's author - find out more