Skip to content

Commit

Permalink
Fix loading icon bug
Browse files Browse the repository at this point in the history
  • Loading branch information
emilkowalski committed Jan 14, 2024
1 parent 7c19a8c commit 7e658f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,6 @@ html[dir='rtl'],

.sonner-loading-bar:nth-child(1) {
animation-delay: -1.2s;
/* Rotate trick to avoid adding an additional pixel in some sizes */
transform: rotate(0.0001deg) translate(146%);
}

Expand Down
5 changes: 3 additions & 2 deletions website/src/components/Hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ export const Hero = () => {
<button
data-primary=""
onClick={() => {
toast('Sonner', {
description: 'An opinionated toast component for React.'
toast.loading('Sonner', {
duration: 999999,
description: 'An opinionated toast component for React.',
});
}}
className={styles.button}
Expand Down

0 comments on commit 7e658f2

Please sign in to comment.