Skip to content
This repository was archived by the owner on Dec 25, 2022. It is now read-only.
This repository was archived by the owner on Dec 25, 2022. It is now read-only.

cols={0} not hiding box #25

@kulbon

Description

@kulbon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions