Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove flex-grid-column() duplicate max-width #10341

Merged
merged 1 commit into from
Jul 4, 2017
Merged

Remove flex-grid-column() duplicate max-width #10341

merged 1 commit into from
Jul 4, 2017

Conversation

LeoColomb
Copy link
Contributor

Very small fix inside flex-grid-column() mixin: max-width fix is added twice: call to flex-grid-size() already import this fix once.

Also, the min-width fix should be inside flex-grid-size() for really fixing things for any size change.

@LeoColomb LeoColomb changed the title remove flex-grid-column() duplicate max-width Remove flex-grid-column() duplicate max-width Jul 4, 2017
Copy link
Contributor

@ncoden ncoden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @LeoColomb. Thank you for your ✨ first contribution ✨ on Foundation !

I have some remarks to make in your PR. What do you think ?
If you agree on these change, will you be able to provide them more or less quickly ?

// https://stackoverflow.com/questions/34934586/white-space-nowrap-and-flexbox-did-not-work-in-chrome
@if $columns == expand {
min-width: 0;
}
Copy link
Contributor

@ncoden ncoden Jul 4, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even if I understand the logic behind this move (all fixes in the same place), this Chrome fix should stay in the component mixin flex-grid-column, because it does not need to be re-generated when we apply a different size.

For example:

.my-flex-col {
    @include flex-grid-column(12);
    // ✓ The IE fix is generated for 12 columns.
    // ✓ The Chrome fix is generated.
}

.my-flex-col--demo {
    @include flex-grid-size(6);
    // ✓ The IE fix must be generated for 6 columns.
    // ☓ The Chrome fix still work, so is useless here.
}

Please move back the Chrome fix to flex-grid-column.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see your point, fix moved back! 😉

Very small fix inside `flex-grid-column()` mixin: `max-width` fix is added twice: call to `flex-grid-size()` already import this fix once.
@ncoden
Copy link
Contributor

ncoden commented Jul 4, 2017

@kball Ready for merge I think.

Copy link
Contributor

@IamManchanda IamManchanda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@IamManchanda IamManchanda merged commit 5848f46 into foundation:develop Jul 4, 2017
@IamManchanda
Copy link
Contributor

IamManchanda commented Jul 4, 2017

Hey @LeoColomb ... Congrats on your first merged PR 😉
You spotted it great!

Thanks for digging into it @ncoden 😉

kball pushed a commit that referenced this pull request Jul 25, 2017
Remove `flex-grid-column()` duplicate `max-width`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants