mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 05:21:52 +08:00
fix(chip): default color has contrast on dark mode (#25998)
resolves #25997
This commit is contained in:
@ -1 +0,0 @@
|
|||||||
@import "./chip";
|
|
@ -1 +0,0 @@
|
|||||||
@import "./chip";
|
|
@ -69,7 +69,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
:host(.chip-outline) {
|
:host(.chip-outline) {
|
||||||
border-color: rgba(0, 0, 0, .32);
|
border-color: rgba($text-color-rgb, .32);
|
||||||
|
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
@ -79,11 +79,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
:host(.chip-outline:not(.ion-color):focus) {
|
:host(.chip-outline:not(.ion-color):focus) {
|
||||||
background: rgba(0, 0, 0, .04);
|
background: rgba($text-color-rgb, .04);
|
||||||
}
|
}
|
||||||
|
|
||||||
:host(.chip-outline.ion-activated:not(.ion-color)) {
|
:host(.chip-outline.ion-activated:not(.ion-color)) {
|
||||||
background: rgba(0, 0, 0, .08);
|
background: rgba($text-color-rgb, .08);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -95,7 +95,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
:host(:not(.ion-color)) ::slotted(ion-icon) {
|
:host(:not(.ion-color)) ::slotted(ion-icon) {
|
||||||
color: rgba(0, 0, 0, .54);
|
color: rgba($text-color-rgb, .54);
|
||||||
}
|
}
|
||||||
|
|
||||||
::slotted(ion-icon:first-child) {
|
::slotted(ion-icon:first-child) {
|
||||||
|
@ -10,10 +10,7 @@ import { createColorClasses } from '../../utils/theme';
|
|||||||
*/
|
*/
|
||||||
@Component({
|
@Component({
|
||||||
tag: 'ion-chip',
|
tag: 'ion-chip',
|
||||||
styleUrls: {
|
styleUrl: 'chip.scss',
|
||||||
ios: 'chip.ios.scss',
|
|
||||||
md: 'chip.md.scss',
|
|
||||||
},
|
|
||||||
shadow: true,
|
shadow: true,
|
||||||
})
|
})
|
||||||
export class Chip implements ComponentInterface {
|
export class Chip implements ComponentInterface {
|
||||||
|
Reference in New Issue
Block a user