Skip to content

Commit

Permalink
updated styling based on dec9 feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
moe-dev committed Dec 9, 2024
1 parent 07a03af commit 89e666c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
12 changes: 12 additions & 0 deletions examples/react-components/src/app/dashboard/dashboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -483,3 +483,15 @@ button:hover {
gap: 8px;
margin: 16px 0;
}

.sonner-toaster {
font-family: "Inter";
font-size: 14px;
z-index: 9999;
pointer-events: none;
background-color: var(--Greyscale-20, #f5f7fb);
}

.sonner-toaster > div {
pointer-events: auto;
}
2 changes: 1 addition & 1 deletion examples/react-components/src/app/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ export default function Dashboard() {
<div>
<Toaster
position="bottom-right"
toastOptions={{ className: "sonner-toaster" }}
toastOptions={{ className: "sonner-toaster", duration: 2500 }}
/>
</div>
</main>
Expand Down
3 changes: 3 additions & 0 deletions examples/react-components/src/app/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,11 @@ body {
}

.sonner-toaster {
font-family: "Inter";
font-size: 14px;
z-index: 9999;
pointer-events: none;
background-color: var(--Greyscale-20, #f5f7fb);
}

.sonner-toaster > div {
Expand Down
2 changes: 1 addition & 1 deletion examples/react-components/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export default function AuthPage() {
<div>
<Toaster
position="bottom-right"
toastOptions={{ className: "sonner-toaster" }}
toastOptions={{ className: "sonner-toaster", duration: 2500 }}
/>
</div>
</main>
Expand Down

0 comments on commit 89e666c

Please sign in to comment.