Skip to content

Commit 91d8c3a

Browse files
committed
refactor: extract $list-inset-end-position var
1 parent 91344fd commit 91d8c3a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/components/Toaster/ToastList/ToastList.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@use '../../variables';
2+
@use './variables' as toastList;
23

34
$block: '.#{variables.$ns}toaster';
45

@@ -7,7 +8,7 @@ $block: '.#{variables.$ns}toaster';
78

89
position: fixed;
910
inset-block-end: 0;
10-
inset-inline-end: 10px;
11+
inset-inline-end: toastList.$list-inset-end-position;
1112
width: var(--g-toaster-width, var(--_--width));
1213
z-index: 100000;
1314
display: flex;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$list-inset-end-position: 10px;

0 commit comments

Comments
 (0)