1
1
mirror of https://github.com/primer/css.git synced 2024-12-12 18:58:01 +03:00

Replace $text-black with --color-text-primary

This commit is contained in:
simurai 2020-09-16 11:17:53 +09:00
parent 39fb07b27a
commit 25b56ea605
7 changed files with 8 additions and 7 deletions

View File

@ -18,6 +18,7 @@ In `v16` we're moving all colors to [primer/primitives](https://github.com/prime
`v15` | `v16`
--- | ---
**Text** |
`$text-black` | `var(--color-text-primary)`
`$text-gray-dark` | `var(--color-text-primary)`
`$text-gray` | `var(--color-text-secondary)`
`$text-gray-light` | `var(--color-text-tertiary)`

View File

@ -162,7 +162,7 @@ h1 {
mark {
background-color: #ff0;
color: $text-black;
color: var(--color-text-primary);
}
/**

View File

@ -15,7 +15,7 @@
line-height: $lh-condensed;
.octicon-link {
color: $text-black;
color: var(--color-text-primary);
vertical-align: middle;
visibility: hidden;
}

View File

@ -14,7 +14,7 @@
position: relative;
display: block;
padding: $spacer-2 $spacer-3;
color: $text-black;
color: var(--color-text-primary);
border-bottom: $border-width $border-style $border-gray-light;
&:first-child {
@ -100,7 +100,7 @@
margin-bottom: 0;
font-size: inherit;
font-weight: $font-weight-bold;
color: $text-black;
color: var(--color-text-primary);
border-bottom: $border-width $border-style $border-gray-light;
&:hover {

View File

@ -12,7 +12,7 @@
width: 100%;
// stylelint-disable-next-line primer/spacing
padding: 12px $spacer-3;
color: $text-black;
color: var(--color-text-primary);
text-align: left;
background-color: transparent;
border: 0;

View File

@ -16,7 +16,7 @@
font-size: $body-font-size;
// stylelint-disable-next-line primer/typography
line-height: 30px;
color: $text-black;
color: var(--color-text-primary);
text-align: center;
white-space: nowrap;
background-color: transparent;

View File

@ -40,7 +40,6 @@ $bg-yellow-light: $yellow-200 !default;
$bg-yellow-dark: $yellow-700 !default;
// Text colors
$text-black: $black !default;
$text-orange: $orange-900 !default;
$text-orange-light: $orange-600 !default;
$text-purple: $purple !default;
@ -60,3 +59,4 @@ $text-blue: $blue-500 !default;
$text-green: $green-600 !default;
$text-red: $red-600 !default;
$text-white: $white !default;
$text-black: $black !default;