Skip to content

Consider Grid--fit rename/Grid--distribute #51

@timkelty

Description

@timkelty

Grid--fit's name can be a bit misleading, particularly because of the name of u-sizeFit.

One might think Grid--fit might be equivalent to:

    <div class="Grid">
      <div class="Grid-cell u-sizeFit">
        <div class="fixture-Box">1</div>
      </div>
      <div class="Grid-cell u-sizeFit">
        <div class="fixture-Box">2</div>
      </div>
      <div class="Grid-cell u-sizeFit">
        <div class="fixture-Box">3</div>
      </div>
    </div>

But it isn't.
Grid--fit distributes cell widths to occupy an entire row equally.

I'm thinking maybe Grid--distribute would be more appropriate? If we wanted to support a "shirinkwrap" grid like the above example, we could repurpose Grid--fit for that.

Otherwise maybe Grid--collapse, or just dropping it all together. It's basically if you were using a standard flexbox, but still wanted your grid gutters (think horizontal list).

Thoughts @simonsmith @giuseppeg?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions