fix(card): update background to use the same as item (#19602)

uses item background but falls back to the background of the content
This commit is contained in:
Brandy Carney
2019-11-08 12:55:19 -05:00
committed by GitHub
parent b23c759456
commit 1a8b7a4559
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
// -------------------------------------------------- // --------------------------------------------------
:host { :host {
--background: var(--ion-item-background, transparent); --background: #{$item-ios-background};
--color: #{$card-ios-text-color}; --color: #{$card-ios-text-color};
@include margin($card-ios-margin-top, $card-ios-margin-end, $card-ios-margin-bottom, $card-ios-margin-start); @include margin($card-ios-margin-top, $card-ios-margin-end, $card-ios-margin-bottom, $card-ios-margin-start);

View File

@ -5,7 +5,7 @@
// -------------------------------------------------- // --------------------------------------------------
:host { :host {
--background: var(--ion-item-background, transparent); --background: #{$item-md-background};
--color: #{$card-md-text-color}; --color: #{$card-md-text-color};
@include margin($card-md-margin-top, $card-md-margin-end, $card-md-margin-bottom, $card-md-margin-start); @include margin($card-md-margin-top, $card-md-margin-end, $card-md-margin-bottom, $card-md-margin-start);