Skip to content

Commit

Permalink
SWED-2503 add utility d-grid + default align in cards wide no img no …
Browse files Browse the repository at this point in the history
…txt-content
  • Loading branch information
goldenraphti committed Jun 20, 2024
1 parent 280c4d2 commit 8e407ba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
- Cards

- add support for div.illustration & picture elements in lieu of the img element as illustrations of used in the cards component (changes in documentation will come in a future release)
- default cards wide with no img and no text content -> align-items: center (better default when title wraps)

- Utility classes

- Add utility classes for display grid and inline grid

## Technical changes

Expand Down
1 change: 1 addition & 0 deletions src/less/components/card.less
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@
grid-template-columns: auto 1fr min-content;
grid-template-rows: auto;
padding: var(--padding-outer);
align-items: center;

& :is(.cards-icon, .h4, .cards-cta) {
padding: 0;
Expand Down
2 changes: 2 additions & 0 deletions src/less/utilities/display.less
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ each(@grid-breakpoints, .(@size, @abbr) {
.d@{infix}-table-cell { display: table-cell !important; }
.d@{infix}-flex { display: flex !important; }
.d@{infix}-inline-flex { display: inline-flex !important; }
.d@{infix}-grid { display: grid !important; }
.d@{infix}-inline-grid { display: inline-grid !important; }
}

.media-breakpoint-up(@size, @abbr, @ruleset);
Expand Down

0 comments on commit 8e407ba

Please sign in to comment.