refactor(card): convert card to shadow (#19395)

references #18899
This commit is contained in:
Adam Bradley
2019-10-10 14:55:35 -05:00
committed by Liam DeBeasi
parent 17119f59cf
commit 08bb60dcbb
12 changed files with 60 additions and 34 deletions

View File

@ -24,6 +24,7 @@
overflow: hidden;
}
// Card Colors
// ---------------------------------------------
@ -32,25 +33,6 @@
color: current-color(contrast);
}
:host(.ion-color)::slotted(*) ion-card-header,
:host(.ion-color)::slotted(*) ion-card-title,
:host(.ion-color)::slotted(*) ion-card-subtitle {
color: current-color(contrast);
}
// Slotted Content
// ---------------------------------------------
::slotted(*) img {
display: block;
width: 100%;
}
::slotted(*) ion-list {
@include margin(0);
}
// Disabled Card
// --------------------------------------------------

View File

@ -14,7 +14,7 @@ import { createColorClasses, openURL } from '../../utils/theme';
ios: 'card.ios.scss',
md: 'card.md.scss'
},
scoped: true
shadow: true
})
export class Card implements ComponentInterface, AnchorInterface, ButtonInterface {