fix(menu): do not override --ion-color-base

This commit is contained in:
Manu Mtz.-Almeida
2018-08-24 03:39:04 +02:00
parent 5f90dbfa6f
commit a8908283c4
4 changed files with 3 additions and 9 deletions

View File

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

View File

@ -4,10 +4,6 @@
// MD Menu Button // MD Menu Button
// -------------------------------------------------- // --------------------------------------------------
:host {
--ion-color-base: currentColor;
}
button { button {
@include padding(0, 8px); @include padding(0, 8px);
} }

View File

@ -6,8 +6,6 @@
:host { :host {
pointer-events: all; pointer-events: all;
color: #{current-color(base)};
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
text-overflow: ellipsis; text-overflow: ellipsis;

View File

@ -257,11 +257,11 @@ export class Select {
} }
@Method() @Method()
open(ev?: UIEvent): Promise<HTMLIonActionSheetElement | HTMLIonAlertElement | HTMLIonPopoverElement>{ open(ev?: UIEvent): Promise<HTMLIonActionSheetElement | HTMLIonAlertElement | HTMLIonPopoverElement> {
let selectInterface = this.interface; let selectInterface = this.interface;
if ((selectInterface === 'action-sheet' || selectInterface === 'popover') && this.multiple) { if ((selectInterface === 'action-sheet' || selectInterface === 'popover') && this.multiple) {
console.warn('Select interface cannot be "' + selectInterface + '" with a multi-value select. Using the "alert" interface instead.'); console.warn(`Select interface cannot be "${selectInterface}" with a multi-value select. Using the "alert" interface instead.`);
selectInterface = 'alert'; selectInterface = 'alert';
} }