-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix marketing utilities #1002
Fix marketing utilities #1002
Conversation
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/primer/primer-css/dzfqmzu76 |
Any ETA on this PR? 😊 (just got bitten by this again today 😅 ) |
This PR is currently waiting for an approval. /cc @jonrohan or if anyone in @primer/ds-core wants to take a look 🙇 |
I’ll take a closer look in an hour. Want to make sure this is the right way to go. |
Is the marketing spacer The other thought I had when we hit this bug that we could spilt apart the imports for the normal and responsive utilities. Then in .com include them like this:
Not sure if that's a better idea or not. I suppose the increase isn't really big. 🤔 |
Right. On marketing pages there will be two
Yeah, might be an option. Although then, would we also need to remove these imports? // in src/utilities/index.scss
@import "./margin.scss";
@import "./padding.scss"; Otherwise the 🤔 Hmmm... Next to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is the best way to go 👍🏻 At least I’m pretty sure I don’t have a better idea.
Yeah, it's maybe the best of all the bad options. 🙈 😬 Or at least it avoids having to rethink/refactor how we currently bundle and serve CSS to each page. |
This uses all spacers (0-12) to generate the marketing
margin/padding
utilities.It should fix an issue where you couldn't use
mb-9 mb-md-4
, see https://github.com/github/site-design/issues/809.Concerns
The marketing bundle would increase by
13.05 K
(1.4 K
gzipped).That's an increase of about 35%? 🤔 Let's see how it compares when moving the marketing spacers to core: #1003
/cc @tobiasahlin
Fixes https://github.com/github/site-design/issues/809