Skip to content

Commit

Permalink
feat(sbb-toast): introduce css var for container position (#2229)
Browse files Browse the repository at this point in the history
Co-authored-by: Osman Minaz <[email protected]>
  • Loading branch information
WalkingOS and Osman Minaz authored Nov 27, 2023
1 parent 581be19 commit 150724f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/toast/toast.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
--sbb-toast-padding-inline: var(--sbb-spacing-responsive-xs);
--sbb-toast-border-radius: var(--sbb-border-radius-4x);
--sbb-toast-container-display: flex;
--sbb-toast-container-position: fixed;
--sbb-toast-horizontal-position: initial;
--sbb-toast-vertical-position: initial;
}
Expand Down Expand Up @@ -65,7 +66,7 @@
}

.sbb-toast__overlay-container {
position: fixed;
position: var(--sbb-toast-container-position);
pointer-events: none;
inset: 0;
display: var(--sbb-toast-container-display);
Expand Down

0 comments on commit 150724f

Please sign in to comment.