Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(styles): updates gap in topic-teaser #1927

Merged
merged 5 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/six-clouds-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-styles': patch
---

Updated and added the gaps between the title and the link-list in the `.topic-teaser-content` class to comply with the figma design.
6 changes: 5 additions & 1 deletion packages/styles/src/components/topic-teaser.scss
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,14 @@
@include make-col($size);
}
}
@each $breakpoint, $gap in topic-teaser.$content-gap {
@include media-breakpoint-up($breakpoint) {
gap: $gap;
}
}

@include media-breakpoint-up(rg) {
flex-direction: row;
gap: var(--post-gutter-x);
}
}

Expand Down
5 changes: 5 additions & 0 deletions packages/styles/src/variables/components/_topic-teaser.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ $content-cols: (
xl: 7,
);

$content-gap: (
rg: 32px,
xl: 40px,
);

$image-cols: (
xs: 10,
rg: 8,
Expand Down
Loading