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 { :host {
color: #{ion-color(primary, base)}; --color: #{$menu-button-ios-color};
} }
:host(.activated) { :host(.activated) {

View File

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

View File

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