Skip to content

fix: only apply classNames.default to default-type toasts#755

Open
restareaByWeezy wants to merge 1 commit intoemilkowalski:mainfrom
restareaByWeezy:fix/classnames-default-scope
Open

fix: only apply classNames.default to default-type toasts#755
restareaByWeezy wants to merge 1 commit intoemilkowalski:mainfrom
restareaByWeezy:fix/classnames-default-scope

Conversation

@restareaByWeezy
Copy link
Copy Markdown

Closes #744

classNames.default was being applied to every toast regardless of type, making it identical to classNames.toast. Now it only applies when toastType === 'default', so toast.success() / toast.error() / etc. won't get the default class.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sonner Error Error Mar 26, 2026 9:56am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

classNames.default applies to all toasts, not just the default toast

1 participant