From d4dddd27f4258c5c85ec785da3316d5c5ea72661 Mon Sep 17 00:00:00 2001 From: simurai Date: Tue, 15 Sep 2020 21:53:56 +0900 Subject: [PATCH] Replace $text-green with --color-text-success --- MIGRATING.md | 1 + src/forms/form-group.scss | 4 ++-- src/support/variables/colors.scss | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/MIGRATING.md b/MIGRATING.md index 85e86281..d5eb7f20 100644 --- a/MIGRATING.md +++ b/MIGRATING.md @@ -22,6 +22,7 @@ In `v16` we're moving all colors to [primer/primitives](https://github.com/prime `$text-gray` | `var(--color-text-secondary)` `$text-gray-light` | `var(--color-text-tertiary)` `$text-blue` | `var(--color-text-link-primary)` +`$text-green` | `var(--color-text-success)` **Border** | `$border-color` | `var(--color-border-primary)` `$border` | `$border-width $border-style var(--color-border-primary)` diff --git a/src/forms/form-group.scss b/src/forms/form-group.scss index a24fabd7..c71bd14f 100644 --- a/src/forms/form-group.scss +++ b/src/forms/form-group.scss @@ -83,7 +83,7 @@ &.is-error { color: $text-red; } - &.is-success { color: $text-green; } + &.is-success { color: var(--color-text-success); } + .note { margin-top: 0; @@ -134,7 +134,7 @@ &.successful { .success { display: inline; - color: $text-green; + color: var(--color-text-success); } } diff --git a/src/support/variables/colors.scss b/src/support/variables/colors.scss index a2ca6ee5..4014eb8c 100644 --- a/src/support/variables/colors.scss +++ b/src/support/variables/colors.scss @@ -42,7 +42,6 @@ $bg-yellow-dark: $yellow-700 !default; // Text colors $text-black: $black !default; $text-white: $white !default; -$text-green: $green-600 !default; $text-orange: $orange-900 !default; $text-orange-light: $orange-600 !default; $text-purple: $purple !default; @@ -60,3 +59,4 @@ $text-gray-dark: $gray-900 !default; $text-gray: $gray-600 !default; $text-gray-light: $gray-500 !default; $text-blue: $blue-500 !default; +$text-green: $green-600 !default;