Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Fixing wrapper/breakout mixins #265

Closed
wants to merge 1 commit into from
Closed

Conversation

ModulesUnraveled
Copy link
Contributor

This is a work in progress, and not ready for review.

// Elements that aren't typically affected by the wrapper,
// but we want to line up in PL.
// Mostly base and atom components.
.sg-pattern-example {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@evanmwillhite I'm not even done listing these here, and I'm already annoyed. I'm not sure this is a viable solution. Can you take a look at this and suggest a better way to do this?

I'm selecting each one, instead of just doing

.sg-pattern-example {
  @include wrapper;
}

because if we do that ^ and then also add the wrapper mixin to the actual elements that need it. e.g. .card-grid, there's a double wrapper thing going on that adds unwanted padding, and is extra weird on mobile.

Maybe we can talk about this tomorrow/friday.

@evanmwillhite
Copy link
Contributor

I was thinking something along these lines, not on every pattern in Pattern Lab https://github.com/fourkitchens/emulsify/tree/wrapper-test

@ModulesUnraveled
Copy link
Contributor Author

I think that still produces the same "sometimes double, sometime just unexpected padding" when the component inside the wrapper also has the wrapper mixin applied.

@evanmwillhite
Copy link
Contributor

It might on the pattern list display but I don't think it does on the individual components. I use those to demo. It's never bothered me on projects

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants