Skip to content

Setting visible on a Grid.Unit sets it to display:flex #13

Description

@lauriejones

This forces the grid unit to be flex, and then the <Cell> behaves like an inline-block element and is not longer full width.

<Grid>
  <Grid.Unit visible><Cell>always visible</Cell></Grid.Unit>
</Grid>

https://github.com/jameslnewell/styled-components-grid/blob/master/src/mixins/gridUnit.js#L48

I am still using version 1 but I think it looks like it would still happen in v2.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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