fix(toolbar): use the correct contrast color for MD toolbar

fixes #11848
This commit is contained in:
Brandy Carney
2017-05-30 11:25:29 -04:00
parent e354f21936
commit 041689b5f5
3 changed files with 19 additions and 5 deletions

View File

@ -31,7 +31,15 @@ $colors: (
light: #f4f4f4, light: #f4f4f4,
dark: #222, dark: #222,
vibrant: rebeccapurple, vibrant: rebeccapurple,
bright: #ffc125 bright: #ffc125,
greyYellow: (
base:#49606e,
contrast:#fbb636
),
greyWhite: (
base:#49606e,
contrast:#fff
)
); );

View File

@ -199,4 +199,11 @@
<ion-icon name="menu"></ion-icon> <ion-icon name="menu"></ion-icon>
</button> </button>
</ion-toolbar> </ion-toolbar>
<ion-toolbar color="greyYellow">
<ion-title>Grey Yellow</ion-title>
</ion-toolbar>
<ion-toolbar color="greyWhite">
<ion-title>Grey White</ion-title>
</ion-toolbar>
</ion-content> </ion-content>

View File

@ -116,7 +116,6 @@ $toolbar-button-md-strong-font-weight: bold !default;
@mixin md-toolbar-theme($color-name, $color-base, $color-contrast) { @mixin md-toolbar-theme($color-name, $color-base, $color-contrast) {
.toolbar-md-#{$color-name} { .toolbar-md-#{$color-name} {
$fg-color: color-contrast($colors-md, $color-base, md);
.toolbar-background-md { .toolbar-background-md {
background: $color-base; background: $color-base;
@ -126,19 +125,19 @@ $toolbar-button-md-strong-font-weight: bold !default;
.bar-button-default-md, .bar-button-default-md,
.bar-button-outline-md, .bar-button-outline-md,
.toolbar-title-md { .toolbar-title-md {
color: $fg-color; color: $color-contrast;
} }
.bar-button-clear-md, .bar-button-clear-md,
.bar-button-default-md, .bar-button-default-md,
.bar-button-outline-md { .bar-button-outline-md {
.button-effect { .button-effect {
background-color: $fg-color; background-color: $color-contrast;
} }
} }
.bar-button-outline-md { .bar-button-outline-md {
border-color: $fg-color; border-color: $color-contrast;
} }
@each $color-name, $color-base, $color-contrast in get-colors($colors-md) { @each $color-name, $color-base, $color-contrast in get-colors($colors-md) {