Skip to content

Commit

Permalink
fix(menu-button): Not visible if toolbar has primary color (#15847)
Browse files Browse the repository at this point in the history
* fix(menu-button): Correct color if toolbar has custom color

* fix(menu-button): Fix variable name
  • Loading branch information
paulstelzer authored and manucorporat committed Oct 8, 2018
1 parent 4d750ed commit e2ea08b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/components/menu-button/menu-button.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// --------------------------------------------------

:host {
color: #{ion-color(primary, base)};
--color: #{$menu-button-ios-color};
}

:host(.activated) {
Expand Down
3 changes: 3 additions & 0 deletions core/src/components/menu-button/menu-button.md.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

// MD Menu Button
// --------------------------------------------------
:host {
--color: #{$menu-button-md-color};
}

button {
@include padding(0, 8px);
Expand Down
9 changes: 9 additions & 0 deletions core/src/components/menu-button/menu-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
// --------------------------------------------------

:host {
color: var(--color);

pointer-events: all;

text-align: center;
Expand Down Expand Up @@ -52,3 +54,10 @@ ion-icon {

pointer-events: none;
}

// Menu Button with Color
// --------------------------------------------------

:host(.ion-color) .button-native {
color: current-color(base);
}

0 comments on commit e2ea08b

Please sign in to comment.