mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 18:54:11 +08:00
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:
@ -5,7 +5,7 @@
|
||||
// --------------------------------------------------
|
||||
|
||||
:host {
|
||||
color: #{ion-color(primary, base)};
|
||||
--color: #{$menu-button-ios-color};
|
||||
}
|
||||
|
||||
:host(.activated) {
|
||||
|
@ -3,6 +3,9 @@
|
||||
|
||||
// MD Menu Button
|
||||
// --------------------------------------------------
|
||||
:host {
|
||||
--color: #{$menu-button-md-color};
|
||||
}
|
||||
|
||||
button {
|
||||
@include padding(0, 8px);
|
||||
|
@ -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);
|
||||
}
|
Reference in New Issue
Block a user