Skip to content

Commit

Permalink
fix(card): push the footer to the bottom of the card consistently (#1…
Browse files Browse the repository at this point in the history
…2137)

### Related Ticket(s)

[ADCMS-7121](https://jsw.ibm.com/browse/ADCMS-7121)
[ADCMS-7158](https://jsw.ibm.com/browse/ADCMS-7158)

### Description

Under certain conditions, the footer of a card, especially within a group, might not stick to the end of the card as intended. This fixes it so that the card footer is always at the end of the card.

### Changelog

**Changed**

- Force the footer of cards to be at the end, corrects an issue with Content Group Cards

<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->
  • Loading branch information
m4olivei authored Dec 7, 2024
1 parent a68e9ba commit e817962
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/styles/scss/components/card/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@
}
}

.#{$prefix}--card {
display: flex;
flex-direction: column;
justify-content: space-between;
}

.#{$prefix}--card__wrapper {
display: flex;
flex: 1;
Expand Down

0 comments on commit e817962

Please sign in to comment.