mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
fix(menu): do not override --ion-color-base
This commit is contained in:
@ -5,7 +5,7 @@
|
|||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
:host {
|
:host {
|
||||||
--ion-color-base: #{ion-color(primary, base)};
|
color: #{ion-color(primary, base)};
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
@ -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';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user