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

Replace auto and fade variables #1448

Merged
merged 10 commits into from
Jun 8, 2021
Merged

Replace auto and fade variables #1448

merged 10 commits into from
Jun 8, 2021

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

Since the v2 variables are not available yet
This should not be needed anymore.
src/forms/form-control.scss Outdated Show resolved Hide resolved
src/progress/progress.scss Outdated Show resolved Hide resolved
@simurai simurai marked this pull request as ready for review 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