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:
parent
c7ea6448c1
commit
c3b4a0c363
5
.changeset/shaggy-shirts-camp.md
Normal file
5
.changeset/shaggy-shirts-camp.md
Normal 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)`
|
@ -130,7 +130,7 @@ textarea.form-control {
|
|||||||
// stylelint-disable-next-line primer/spacing
|
// stylelint-disable-next-line primer/spacing
|
||||||
padding: 2px $spacer-1;
|
padding: 2px $spacer-1;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
background: var(--color-attention-subtle, var(--color-auto-yellow-1));
|
background: var(--color-attention-subtle);
|
||||||
border-radius: $border-radius;
|
border-radius: $border-radius;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
height: 8px;
|
height: 8px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background-color: var(--color-neutral-muted, var(--color-auto-gray-2));
|
background-color: var(--color-neutral-muted);
|
||||||
border-radius: $border-radius;
|
border-radius: $border-radius;
|
||||||
outline: 1px solid transparent; // Support Firefox custom colors
|
outline: 1px solid transparent; // Support Firefox custom colors
|
||||||
}
|
}
|
||||||
|
@ -41,8 +41,8 @@
|
|||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
|
||||||
&--success {
|
&--success {
|
||||||
color: var(--color-fg-on-emphasis, var(--color-btn-primary-text)); // TODO remove V1 fallback
|
color: var(--color-fg-on-emphasis);
|
||||||
background-color: var(--color-success-emphasis, var(--color-btn-primary-bg)); // TODO remove V1 fallback
|
background-color: var(--color-success-emphasis);
|
||||||
border: $border-width $border-style transparent;
|
border: $border-width $border-style transparent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user