Skip to content

Commit

Permalink
Renaming too general className with project-specific one (#305) (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
jschoder authored Jan 24, 2024
1 parent d1b6619 commit 8f696af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ const Toast = (props: ToastProps) => {
function getLoadingIcon() {
if (loadingIconProp) {
return (
<div className="loader" data-visible={toastType === 'loading'}>
<div className="sonner-loader" data-visible={toastType === 'loading'}>
{loadingIconProp}
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ html[dir='rtl'],
}
}

.loader {
.sonner-loader {
position: absolute;
top: 50%;
left: 50%;
Expand All @@ -657,7 +657,7 @@ html[dir='rtl'],
transform 200ms;
}

.loader[data-visible='false'] {
.sonner-loader[data-visible='false'] {
opacity: 0;
transform: scale(0.8) translate(-50%, -50%);
}

1 comment on commit 8f696af

@vercel
Copy link

@vercel vercel bot commented on 8f696af Jan 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.