mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
fix(card): update currentColor to use contrast color
This commit is contained in:
@ -34,7 +34,7 @@
|
||||
|
||||
:host(.ion-color)::slotted(*) ion-card-title,
|
||||
:host(.ion-color)::slotted(*) ion-card-subtitle {
|
||||
color: currentColor;
|
||||
color: current-color(contrast);
|
||||
}
|
||||
|
||||
// Slotted Content
|
||||
|
@ -44,6 +44,21 @@
|
||||
</ion-card-content>
|
||||
</ion-card>
|
||||
|
||||
<ion-card class="custom2">
|
||||
<ion-card-header>
|
||||
<ion-card-subtitle>
|
||||
Subtitle
|
||||
</ion-card-subtitle>
|
||||
<ion-card-title>
|
||||
Title
|
||||
</ion-card-title>
|
||||
</ion-card-header>
|
||||
|
||||
<ion-card-content>
|
||||
The British use the term "header", but the American term "head-shot" the English simply refuse to adopt.
|
||||
</ion-card-content>
|
||||
</ion-card>
|
||||
|
||||
<ion-card color="secondary">
|
||||
<ion-card-header>
|
||||
<ion-card-subtitle>Subtitle</ion-card-subtitle>
|
||||
|
@ -28,7 +28,7 @@
|
||||
</ion-card-header>
|
||||
|
||||
<ion-card-content>
|
||||
The British use the term "header", but the American term "head-shot" the English simply refuse to adopt.
|
||||
The British use the term "header".
|
||||
</ion-card-content>
|
||||
</ion-card>
|
||||
|
||||
@ -44,7 +44,7 @@
|
||||
</ion-card-header>
|
||||
|
||||
<ion-card-content>
|
||||
The British use the term "header", but the American term "head-shot" the English simply refuse to adopt.
|
||||
The British use the term "header".
|
||||
</ion-card-content>
|
||||
</ion-card>
|
||||
|
||||
@ -59,7 +59,7 @@
|
||||
</ion-card-header>
|
||||
|
||||
<ion-card-content>
|
||||
The British use the term "header", but the American term "head-shot" the English simply refuse to adopt.
|
||||
The British use the term "header".
|
||||
</ion-card-content>
|
||||
</ion-card>
|
||||
|
||||
@ -74,7 +74,7 @@
|
||||
</ion-card-header>
|
||||
|
||||
<ion-card-content>
|
||||
The British use the term "header", but the American term "head-shot" the English simply refuse to adopt.
|
||||
The British use the term "header".
|
||||
</ion-card-content>
|
||||
</ion-card>
|
||||
|
||||
@ -89,7 +89,7 @@
|
||||
</ion-card-header>
|
||||
|
||||
<ion-card-content>
|
||||
The British use the term "header", but the American term "head-shot" the English simply refuse to adopt.
|
||||
The British use the term "header".
|
||||
</ion-card-content>
|
||||
</ion-card>
|
||||
|
||||
@ -104,7 +104,7 @@
|
||||
</ion-card-header>
|
||||
|
||||
<ion-card-content>
|
||||
The British use the term "header", but the American term "head-shot" the English simply refuse to adopt.
|
||||
The British use the term "header".
|
||||
</ion-card-content>
|
||||
</ion-card>
|
||||
|
||||
|
Reference in New Issue
Block a user