1
1
mirror of https://github.com/primer/css.git synced 2024-10-05 21:07:46 +03:00

Removing v2 color mode css variable fallbacks (#1579)

* Removing v2 color mode fallbacks

* Create shaggy-shirts-camp.md
This commit is contained in:
Jon Rohan 2021-09-08 18:11:45 -07:00 committed by GitHub
parent c7ea6448c1
commit c3b4a0c363
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 4 deletions

View File

@ -0,0 +1,5 @@
---
"@primer/css": minor
---
Removing v2 color mode css var fallbacks. `var(--color-v2, var(--color-v1))` becomes `var(--color-v2)`

View File

@ -130,7 +130,7 @@ textarea.form-control {
// stylelint-disable-next-line primer/spacing
padding: 2px $spacer-1;
font-style: normal;
background: var(--color-attention-subtle, var(--color-auto-yellow-1));
background: var(--color-attention-subtle);
border-radius: $border-radius;
}
}

View File

@ -4,7 +4,7 @@
display: flex;
height: 8px;
overflow: hidden;
background-color: var(--color-neutral-muted, var(--color-auto-gray-2));
background-color: var(--color-neutral-muted);
border-radius: $border-radius;
outline: 1px solid transparent; // Support Firefox custom colors
}

View File

@ -41,8 +41,8 @@
flex-shrink: 0;
&--success {
color: var(--color-fg-on-emphasis, var(--color-btn-primary-text)); // TODO remove V1 fallback
background-color: var(--color-success-emphasis, var(--color-btn-primary-bg)); // TODO remove V1 fallback
color: var(--color-fg-on-emphasis);
background-color: var(--color-success-emphasis);
border: $border-width $border-style transparent;
}
}