react-raster
react-raster copied to clipboard
cols={0} not hiding box
Docs says: "Width of the Box. Falls back to width of parent Box or Grid. Unit: Grid-columns defined with the prop "colspan". The value 0 sets display: none;."
Example:
<Box colspan={7} breakpoints={[0, 800]}>
<Box cols={[0, 1]}></Box>
<Box cols={[7, 6]}></Box>
</Box>
The cols={0} is visible because it generate
.gZITk { grid-column: auto / span 0; }
which is incorrect. No "display: none" generated.
Same issue