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

Convert margin utilities to rem units with fallbacks #2311

Merged
merged 4 commits into from
Nov 21, 2022
Merged

Conversation

langermank
Copy link
Contributor

@langermank langermank commented Nov 15, 2022

What are you trying to accomplish?

Safely test rem units for all margin base and utility styles behind a feature flag. Each change is using a CSS var that only exists behind a feature flag, with a fallback to the current value (scss var). There should be no visual changes to margin styles with this change.

What approach did you choose and why?

CSS vars with fallbacks as this has been a useful method for testing our new set of design tokens.

What should reviewers focus on?

  • Spelling/typos

Can these changes ship as is?

  • Yes, this PR does not depend on additional changes. 🚢

@changeset-bot
Copy link

changeset-bot bot commented Nov 15, 2022

🦋 Changeset detected

Latest commit: 98e74bc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/css Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot temporarily deployed to Storybook Preview November 15, 2022 16:58 Inactive
@langermank langermank marked this pull request as ready for review November 17, 2022 01:02
@langermank langermank requested a review from a team as a code owner November 17, 2022 01:02
@langermank langermank temporarily deployed to github-pages November 17, 2022 01:08 Inactive
@github-actions github-actions bot temporarily deployed to Storybook Preview November 17, 2022 01:08 Inactive
@langermank langermank changed the title [WIP] Convert margin utilities to rem units with fallbacks Convert margin utilities to rem units with fallbacks Nov 17, 2022
@langermank langermank requested a review from jonrohan November 17, 2022 01:15
@langermank langermank marked this pull request as draft November 17, 2022 20:45
@langermank langermank marked this pull request as ready for review November 18, 2022 15:43
@langermank langermank merged commit 3b397d9 into main Nov 21, 2022
@langermank langermank deleted the margin-utils-rem branch November 21, 2022 17:34
@primer-css primer-css mentioned this pull request Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants