mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(icon): set ion-icon colors per mode
This commit is contained in:
@@ -35,7 +35,8 @@ hr {
|
||||
strong,
|
||||
em,
|
||||
sub,
|
||||
sup {
|
||||
sup,
|
||||
ion-icon {
|
||||
&[#{$color-name}] {
|
||||
color: $color-value !important;
|
||||
}
|
||||
|
||||
@@ -30,7 +30,8 @@ hr {
|
||||
strong,
|
||||
em,
|
||||
sub,
|
||||
sup {
|
||||
sup,
|
||||
ion-icon {
|
||||
&[#{$color-name}] {
|
||||
color: $color-value !important;
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ export class Icon {
|
||||
// deprecated warning
|
||||
console.warn('<icon> has been renamed to <ion-icon>');
|
||||
console.warn('<ion-icon> requires the "name" attribute w/ a value');
|
||||
console.warn('<ion home></icon> should now be <ion-icon name="home"></ion-icon>');
|
||||
console.warn('<icon home></icon> should now be <ion-icon name="home"></ion-icon>');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user