fix(text): use the new way to generate colors

This commit is contained in:
Brandy Carney
2018-02-08 13:03:46 -05:00
parent 0f46891ae1
commit bf143fe96a
2 changed files with 8 additions and 6 deletions

View File

@@ -6,13 +6,14 @@
// Generate iOS Text Colors
// --------------------------------------------------
@each $color-name, $color-base, $color-contrast in get-colors($colors-ios) {
@each $color-name, $color-value in $colors-ios {
$base-color: ion-color($colors-ios, $color-name, base, ios);
.text-ios-#{$color-name},
.text-ios-#{$color-name} a,
.text-ios-#{$color-name} p {
// scss-lint:disable ImportantRule
color: $color-base !important;
color: $base-color !important;
}
}
}

View File

@@ -6,13 +6,14 @@
// Generate Material Design Text Colors
// --------------------------------------------------
@each $color-name, $color-base, $color-contrast in get-colors($colors-md) {
@each $color-name, $color-value in $colors-md {
$base-color: ion-color($colors-md, $color-name, base, md);
.text-md-#{$color-name},
.text-md-#{$color-name} a,
.text-md-#{$color-name} p {
// scss-lint:disable ImportantRule
color: $color-base !important;
color: $base-color !important;
}
}
}