Skip to content

Replace auto and fade variables#1448

Merged
simurai merged 10 commits intomainfrom
replace-auto-and-fade
Jun 8, 2021
Merged

Replace auto and fade variables#1448
simurai merged 10 commits intomainfrom
replace-auto-and-fade

Conversation

@simurai
Copy link
Contributor

@simurai simurai commented Jun 7, 2021

This replaces/aliases all auto and fade variables in preparation for V2.

Initially I tried to use the new V2 variables with a fallback, like var(--color-v2, var(--color-v1)). But unlike on dotcom where we can load a separate CSS bundle, in Primer CSS I don't think we have that mechanism. So this PR tries to replace the fade + auto variables with existing V1 variables.

@changeset-bot
Copy link

changeset-bot bot commented Jun 7, 2021

🦋 Changeset detected

Latest commit: 1d48bb3

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 Patch

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

simurai added 2 commits June 7, 2021 22:16
Since the v2 variables are not available yet
This should not be needed anymore.
@simurai simurai marked this pull request as ready for review June 7, 2021 14:21
@simurai simurai requested review from colebemis and jonrohan June 7, 2021 14:21
@jonrohan
Copy link
Member

jonrohan commented Jun 8, 2021

Initially I tried to use the new V2 variables with a fallback, like var(--color-v2, var(--color-v1)). But unlike on dotcom where we can load a separate CSS bundle, in Primer CSS I don't think we have that mechanism. So this PR tries to replace the fade + auto variables with existing V1 variables.

Spoke with @simurai but I think we can use v2 here with the fallback. Will fix the stylelint in this PR.

@simurai simurai merged commit 8175f88 into main Jun 8, 2021
@simurai simurai deleted the replace-auto-and-fade branch June 8, 2021 02:58
@primer-css primer-css mentioned this pull request Jun 8, 2021
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.

2 participants