Skip to content

Commit 06bf766

Browse files
authored
chore: remove lift interaction, decrease default gap (#569)
1 parent 556dd16 commit 06bf766

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ import {
2222
const VISIBLE_TOASTS_AMOUNT = 3;
2323

2424
// Viewport padding
25-
const VIEWPORT_OFFSET = '32px';
25+
const VIEWPORT_OFFSET = '24px';
2626

2727
// Mobile viewport padding
2828
const MOBILE_VIEWPORT_OFFSET = '16px';
2929

3030
// Default lifetime of a toasts (in ms)
31-
const TOAST_LIFETIME = 4000;
31+
const TOAST_LIFETIME = 5000;
3232

3333
// Default toast width
3434
const TOAST_WIDTH = 356;

src/styles.css

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,6 @@ html[dir='rtl'],
5151
transition: transform 400ms ease;
5252
}
5353

54-
[data-sonner-toaster][data-lifted='true'] {
55-
transform: translateY(-10px);
56-
}
57-
58-
@media (hover: none) and (pointer: coarse) {
59-
[data-sonner-toaster][data-lifted='true'] {
60-
transform: none;
61-
}
62-
}
63-
6454
[data-sonner-toaster][data-x-position='right'] {
6555
right: var(--offset-right);
6656
}

0 commit comments

Comments
 (0)