Skip to content

Commit

Permalink
fix(styles): Dismissible toast cannot be closed
Browse files Browse the repository at this point in the history
  • Loading branch information
imagoiq committed Sep 27, 2023
1 parent 7ab7ded commit 95aa0d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/spotty-eggs-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-styles': patch
---

Added missing pointer-events to allow a dismissible toast to be closed interactively.
1 change: 1 addition & 0 deletions packages/styles/src/mixins/_notification.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
@mixin notification-dismissible($size, $close: 'btn-close') {
$padding-x: map.get(notification.$notification-padding-x-map, $size);

pointer-events: auto;
position: relative;
padding-inline-end: $padding-x + notification.$notification-gap + close.$close-size;

Expand Down

0 comments on commit 95aa0d3

Please sign in to comment.