diff --git a/core/api.txt b/core/api.txt
index dcb44b77d5..66a07148e2 100644
--- a/core/api.txt
+++ b/core/api.txt
@@ -174,7 +174,7 @@ ion-button,css-prop,--transition
ion-buttons,scoped
ion-buttons,prop,collapse,boolean,false,false,false
-ion-card,scoped
+ion-card,shadow
ion-card,prop,button,boolean,false,false,false
ion-card,prop,color,string | undefined,undefined,false,false
ion-card,prop,disabled,boolean,false,false,false
diff --git a/core/src/components/card-header/card-header.scss b/core/src/components/card-header/card-header.scss
index 963f4620ae..633a46f92b 100644
--- a/core/src/components/card-header/card-header.scss
+++ b/core/src/components/card-header/card-header.scss
@@ -4,6 +4,9 @@
// --------------------------------------------------
:host {
+ --background: transparent;
+ --color: inherit;
+
display: block;
position: relative;
@@ -15,8 +18,3 @@
background: current-color(base);
color: current-color(contrast);
}
-
-:host(.ion-color) ::slotted(ion-card-title),
-:host(.ion-color) ::slotted(ion-card-subtitle) {
- color: currentColor;
-}
\ No newline at end of file
diff --git a/core/src/components/card-header/card-header.tsx b/core/src/components/card-header/card-header.tsx
index c904f03256..e0ee569c5d 100644
--- a/core/src/components/card-header/card-header.tsx
+++ b/core/src/components/card-header/card-header.tsx
@@ -37,6 +37,7 @@ export class CardHeader implements ComponentInterface {
class={{
...createColorClasses(this.color),
'card-header-translucent': this.translucent,
+ 'ion-inherit-color': true,
[mode]: true
}}
>
diff --git a/core/src/components/card-header/test/basic/index.html b/core/src/components/card-header/test/basic/index.html
index 0e563586f5..773da7a159 100644
--- a/core/src/components/card-header/test/basic/index.html
+++ b/core/src/components/card-header/test/basic/index.html
@@ -46,7 +46,17 @@
Card Title
- This is Card Content
+ Custom background, color=secondary on ion-card-header
+
+
+
+
+
+ Card Subtitle
+ Card Title
+
+
+ color=danger on ion-card-header
@@ -67,6 +77,10 @@
--color: hotpink;
}
+ body {
+ --ion-item-background: #1a1b1e;
+ }
+