Skip to content

Commit 1a8b7a4

Browse files
fix(card): update background to use the same as item (#19602)
uses item background but falls back to the background of the content
1 parent b23c759 commit 1a8b7a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/components/card/card.ios.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// --------------------------------------------------
66

77
:host {
8-
--background: var(--ion-item-background, transparent);
8+
--background: #{$item-ios-background};
99
--color: #{$card-ios-text-color};
1010

1111
@include margin($card-ios-margin-top, $card-ios-margin-end, $card-ios-margin-bottom, $card-ios-margin-start);

core/src/components/card/card.md.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// --------------------------------------------------
66

77
:host {
8-
--background: var(--ion-item-background, transparent);
8+
--background: #{$item-md-background};
99
--color: #{$card-md-text-color};
1010

1111
@include margin($card-md-margin-top, $card-md-margin-end, $card-md-margin-bottom, $card-md-margin-start);

0 commit comments

Comments
 (0)