Skip to content

Commit

Permalink
fix(styles): Fixed layout on post-alert with medium (md) breakpoint (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
imagoiq authored Mar 14, 2024
1 parent d892db0 commit 770b6b3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/old-carpets-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-styles': patch
---

Fixed layout on post-alert with medium (md) breakpoint.
7 changes: 6 additions & 1 deletion packages/styles/src/components/alert.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,15 @@
padding-inline-end: notification.$notification-gap + close.$close-size;
}

&.no-icon > .alert-content {
padding-inline-start: 0;
}

> .alert-buttons {
display: flex;

> .btn {
> .btn,
> ::slotted(.btn) {
flex: 1 0 0;
width: 100%;

Expand Down

0 comments on commit 770b6b3

Please sign in to comment.