Skip to content

Question about the Grid / Cell usage #12

@jamietotten

Description

@jamietotten
  1. Is each <Grid> intended to represent a row? In your demos you have one <Grid> and many <Cell>s, however if you test this out, you don't see the behaviour that you are suggesting in the example. For example when you have the example for:
<Grid>
    <Cell size='6/12'>
        Fills Half
    </Cell>
    <Cell>
        Fills Rest.. (Yay for Flexbox)
    </Cell>
    <Cell size={200} lap={150}>
        Fills 150px on lap and 200px everywhere else
    </Cell>

You end up with all 3 cells in the first row and the remaining ones staggered in distribution. I am just wondering because when I read "Fills rest" I'm assuming it would fill the rest of the available space. Instead you get an additional cell in the row of 150px (lap).
image

  1. I'm also trying to understand the -11px margin left/right gutter on the <Grid> element. Is the intension that the outer <Grid> is wrapped in a .container with an 11px padding left/right?

Any insight is appreciated.
Jamie

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions