Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(card): update currentColor to use contrast color
  • Loading branch information
brandyscarney committed Oct 9, 2018
1 parent 104a823 commit a9a29f7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
2 changes: 1 addition & 1 deletion core/src/components/card/card.scss
Expand Up @@ -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
Expand Down
15 changes: 15 additions & 0 deletions core/src/components/card/test/basic/index.html
Expand Up @@ -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>
Expand Down
12 changes: 6 additions & 6 deletions core/src/components/card/test/standalone/index.html
Expand Up @@ -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>

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

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

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

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

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

Expand Down

0 comments on commit a9a29f7

Please sign in to comment.