fix(menu-button): Not visible if toolbar has primary color (#15847)

* fix(menu-button): Correct color if toolbar has custom color

* fix(menu-button): Fix variable name
This commit is contained in:
Paul Stelzer
2018-10-08 23:05:17 +02:00
committed by Manu MA
parent 4d750edfc3
commit e2ea08b29b
3 changed files with 13 additions and 1 deletions

View File

@ -5,7 +5,7 @@
// --------------------------------------------------
:host {
color: #{ion-color(primary, base)};
--color: #{$menu-button-ios-color};
}
:host(.activated) {

View File

@ -3,6 +3,9 @@
// MD Menu Button
// --------------------------------------------------
:host {
--color: #{$menu-button-md-color};
}
button {
@include padding(0, 8px);

View File

@ -4,6 +4,8 @@
// --------------------------------------------------
:host {
color: var(--color);
pointer-events: all;
text-align: center;
@ -52,3 +54,10 @@ ion-icon {
pointer-events: none;
}
// Menu Button with Color
// --------------------------------------------------
:host(.ion-color) .button-native {
color: current-color(base);
}