From a9a29f74f9b55b53202527ca74ca5d320ccd3e4c Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Tue, 9 Oct 2018 12:50:50 -0500 Subject: [PATCH] fix(card): update currentColor to use contrast color --- core/src/components/card/card.scss | 2 +- core/src/components/card/test/basic/index.html | 15 +++++++++++++++ .../components/card/test/standalone/index.html | 12 ++++++------ 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/core/src/components/card/card.scss b/core/src/components/card/card.scss index d7bce1ae04b..f1ee906a83d 100755 --- a/core/src/components/card/card.scss +++ b/core/src/components/card/card.scss @@ -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 diff --git a/core/src/components/card/test/basic/index.html b/core/src/components/card/test/basic/index.html index 830b05e7def..708d899623d 100644 --- a/core/src/components/card/test/basic/index.html +++ b/core/src/components/card/test/basic/index.html @@ -44,6 +44,21 @@ + + + + Subtitle + + + Title + + + + + The British use the term "header", but the American term "head-shot" the English simply refuse to adopt. + + + Subtitle diff --git a/core/src/components/card/test/standalone/index.html b/core/src/components/card/test/standalone/index.html index 501fc2de8e3..76f68186c30 100644 --- a/core/src/components/card/test/standalone/index.html +++ b/core/src/components/card/test/standalone/index.html @@ -28,7 +28,7 @@ - The British use the term "header", but the American term "head-shot" the English simply refuse to adopt. + The British use the term "header". @@ -44,7 +44,7 @@ - The British use the term "header", but the American term "head-shot" the English simply refuse to adopt. + The British use the term "header". @@ -59,7 +59,7 @@ - The British use the term "header", but the American term "head-shot" the English simply refuse to adopt. + The British use the term "header". @@ -74,7 +74,7 @@ - The British use the term "header", but the American term "head-shot" the English simply refuse to adopt. + The British use the term "header". @@ -89,7 +89,7 @@ - The British use the term "header", but the American term "head-shot" the English simply refuse to adopt. + The British use the term "header". @@ -104,7 +104,7 @@ - The British use the term "header", but the American term "head-shot" the English simply refuse to adopt. + The British use the term "header".