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 display property from sizeFull #36

Merged
merged 2 commits into from
Jul 8, 2016
Merged

Conversation

simonsmith
Copy link
Member

Addresses #35

Linting errors are caught by `postcss-import` so we need to allow them
through to postcss-reporter
@giuseppeg
Copy link
Member

Does it make sense to remove box-sizing too? Either ways it looks good to me 🚢

@simonsmith
Copy link
Member Author

Does it make sense to remove box-sizing too?

Good question. I did, and the test failed (the element moved outside its parent). I wondered if the utility should make an assumption that the page it lives in has already set border-box. Maybe these days we can assume so?

@giuseppeg
Copy link
Member

In my opinion utilities shouldn't make assumptions.
They should do a single thing (in this case set width to 100%) and have no "side-effects".
If one needs box-sizing he/she can use another utility class or set it globally.

@simonsmith
Copy link
Member Author

Well I guess if we take the box-sizing away, we are assuming that the user handles it. I think that's cool though, and more inline with the doing one thing as you say.

Plus suitcss-base already sets it.

@timkelty
Copy link
Member

timkelty commented Jul 8, 2016

Agreed on all accounts!

Setting this display property clashes with other utilities on the
component. This utility should only concern itself with the width and
the border-box (to ensure element does not exceed parent)

Fixes #35
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