mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
fix(note): do not overide --ion-color-base
This commit is contained in:
@ -5,5 +5,5 @@
|
|||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
:host {
|
:host {
|
||||||
--ion-color-base: #{$note-ios-color};
|
--color: #{$note-ios-color};
|
||||||
}
|
}
|
||||||
|
@ -5,5 +5,5 @@
|
|||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
:host {
|
:host {
|
||||||
--ion-color-base: #{$note-md-color};
|
--color: #{$note-md-color};
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,11 @@
|
|||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
:host {
|
:host {
|
||||||
color: #{current-color(base)};
|
color: var(--color);
|
||||||
|
|
||||||
font-family: $font-family-base;
|
font-family: $font-family-base;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:host(.ion-color) {
|
||||||
|
color: #{current-color(base)};
|
||||||
|
}
|
||||||
|
@ -27,9 +27,7 @@ export class Note {
|
|||||||
|
|
||||||
hostData() {
|
hostData() {
|
||||||
return {
|
return {
|
||||||
class: {
|
class: createColorClasses(this.color)
|
||||||
...createColorClasses(this.color)
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user