fix(card): update currentColor to use contrast color

This commit is contained in:
Brandy Carney
2018-10-09 12:50:50 -05:00
parent 104a823049
commit a9a29f74f9
3 changed files with 22 additions and 7 deletions

View File

@ -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

View File

@ -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>

View File

@ -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>