You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A common requirement is to hide some elements on a smaller screen, If we only use CSS in Grid to do this, this problem can be solved perfectly under SSR.
Expected:
No breaking changes
Hide Grid when it's unit size is 0
Only when media query is hit
Others
Due each breakpoint props can be adapted upward, the hidden action is also upward covered.
For example, xs means xs breakpoint and the width greater than xs, if we only set 0 for xs on Grid, then Grid will be hidden forever:
Well, it has to be said, that the function to hide elements when the value is 0 is really very useful.
It's hard to imagine that this implemented with CSS, which is prefectly compatible with server-side rendering.
Feature request 🚀
A common requirement is to hide some elements on a smaller screen, If we only use
CSS
inGrid
to do this, this problem can be solved perfectly under SSR.Expected:
Grid
when it's unit size is0
Others
Due each breakpoint props can be adapted upward, the
hidden
action is also upward covered.For example,
xs
meansxs
breakpoint and the width greater thanxs
, if we only set0
forxs
onGrid
, thenGrid
will be hidden forever:If we omit breakpoints, the omitted breakpoints will also be hidden:
The text was updated successfully, but these errors were encountered: