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

Removing the rem() mixin and usages. Placing the computed values in place. #1541

Merged
merged 2 commits into from
Aug 23, 2021

Conversation

jonrohan
Copy link
Member

@jonrohan jonrohan commented Aug 19, 2021

The rem() mixin is holding back the codebase from upgrading to dart-sass. #1452 (comment)

node-sass has reached end of life and is no longer supported by sass. But we can't migrate until we remove all a / b math from the codebase. There's issues migrating this mixin so we'd like to remove it.

I've searched for the places this mixin is used and replaced with the computed values for these marketing buttons. I'd like to put this in the next major release and then, if it's necessary, add to the dotcom codebase in case any code there uses the mixin.

@tobiasahlin @simurai do you see any problems with this plan?

@changeset-bot
Copy link

changeset-bot bot commented Aug 19, 2021

🦋 Changeset detected

Latest commit: 90a7e08

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 Major

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

Copy link
Contributor

@simurai simurai left a comment

Choose a reason for hiding this comment

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

This looks good to me for the next major release.

Eventually the computed values like .375rem can come from Primitives, but that's a bigger effort.

@tobiasahlin
Copy link
Contributor

Yesss this looks good. Agree that we can refine this, but looks OK to ship as is ☀️

@jonrohan jonrohan marked this pull request as ready for review August 19, 2021 16:13
@jonrohan jonrohan requested a review from a team as a code owner August 19, 2021 16:13
@jonrohan jonrohan merged commit d24d382 into next_major Aug 23, 2021
@jonrohan jonrohan deleted the remove-rem-mixin branch August 23, 2021 16:31
jonrohan added a commit that referenced this pull request Sep 17, 2021
* Adding pre mode

* Updating the workflows

* Update README.md

* Create proud-rules-wonder.md

* Rename and move color mode variables out of base package (#1462)

* Rename and move color mode variables out of base package

* Create mighty-goats-teach.md

* Add test to make sure support is never more than 0

* Update mighty-goats-teach.md

* Update mighty-goats-teach.md

* Remove test

* Delete patch

* Moving color modes to their own bundle (#1465)

* Moving color modes to their own bundle

* Create new-beers-peel.md

* Removing the rem() mixin and usages. Placing the computed values in place. (#1541)

* Removing the rem() mixin and usages. Placing the computed values in place.

* Create flat-shirts-lay.md

* Fixing stylelint issues

* Fix more stylelint issue

* Remove break-word from utilities (#1566)

* Remove break-word from utilities

* Create twelve-fireants-shave.md

* Adding dark high contrast

* Fixing mising color modes selectors

* Remove pre.json if it exists

* Fixing lint error

* Removing pre mode

Co-authored-by: simurai <[email protected]>
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