react-raster icon indicating copy to clipboard operation
react-raster copied to clipboard

cols={0} not hiding box

Open kulbon opened this issue 3 years ago • 1 comments

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.

kulbon avatar Jan 12 '22 14:01 kulbon

Same issue

alanwu4321 avatar May 13 '22 15:05 alanwu4321