Skip to content

Commit 5203feb

Browse files
committed
feat(card): correctly size when height changes
Closes #12555
1 parent 649ebc1 commit 5203feb

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

projects/igniteui-angular/src/lib/core/styles/components/card/_card-theme.scss

+11-4
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@
156156

157157
%igx-card-header {
158158
display: flex;
159-
flex: 1 1 auto;
160159
flex-flow: row wrap;
161160
align-content: flex-start;
162161
width: 100%;
@@ -221,9 +220,9 @@
221220
%igx-card-content {
222221
display: block;
223222
width: 100%;
224-
flex: 1 1 auto;
225223
padding: $card-content-padding;
226224
color: var-get($theme, 'content-text-color');
225+
overflow: auto;
227226
}
228227

229228
%igx-card-media {
@@ -248,17 +247,25 @@
248247
display: flex;
249248
flex-flow: row wrap;
250249
justify-content: space-between;
251-
flex: 0 1 auto;
252250
align-items: center;
253251
padding: $card-actions-padding;
254252

253+
&:first-child {
254+
margin-block-end: auto;
255+
}
256+
257+
&:last-child {
258+
margin-block-start: auto;
259+
}
260+
255261
[igxButton] ~ [igxButton] {
256262
margin-inline-start: rem(8px);
257263
}
258264
}
259265

260266
%igx-card-actions--vertical {
261267
flex-direction: column;
268+
margin-block: initial;
262269

263270
[dir='rtl'] & {
264271
order: -1;
@@ -360,7 +367,7 @@
360367
}
361368

362369
/// Adds typography styles for the igx-card component.
363-
/// Uses the 'h5', 'subtitle-2' and 'body-2'
370+
/// Uses the 'h6', 'subtitle-2' and 'body-2'
364371
/// category from the typographic scale.
365372
/// @group typography
366373
/// @param {Map} $categories [(title: 'h6', title-small: 'subtitle-2', subtitle: 'subtitle-2', content: 'body-2')] - The categories from the typographic scale used for type styles.

0 commit comments

Comments
 (0)