mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +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) {
|
||||
border-color: rgba(0, 0, 0, .32);
|
||||
border-color: rgba($text-color-rgb, .32);
|
||||
|
||||
background: transparent;
|
||||
}
|
||||
@ -79,11 +79,11 @@
|
||||
}
|
||||
|
||||
: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)) {
|
||||
background: rgba(0, 0, 0, .08);
|
||||
background: rgba($text-color-rgb, .08);
|
||||
}
|
||||
|
||||
|
||||
@ -95,7 +95,7 @@
|
||||
}
|
||||
|
||||
:host(:not(.ion-color)) ::slotted(ion-icon) {
|
||||
color: rgba(0, 0, 0, .54);
|
||||
color: rgba($text-color-rgb, .54);
|
||||
}
|
||||
|
||||
::slotted(ion-icon:first-child) {
|
||||
|
@ -10,10 +10,7 @@ import { createColorClasses } from '../../utils/theme';
|
||||
*/
|
||||
@Component({
|
||||
tag: 'ion-chip',
|
||||
styleUrls: {
|
||||
ios: 'chip.ios.scss',
|
||||
md: 'chip.md.scss',
|
||||
},
|
||||
styleUrl: 'chip.scss',
|
||||
shadow: true,
|
||||
})
|
||||
export class Chip implements ComponentInterface {
|
||||
|
Reference in New Issue
Block a user