Skip to content

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

@alexandernanberg

Description

@alexandernanberg

Kinda unexpected that the classNames.default applies the class to all toasts and not just toast('My message'), which means it's no different to classNames.toast

<li
  tabIndex={0}
  ref={toastRef}
  className={cn(
    className,
    toastClassname,
    classNames?.toast,
    toast?.classNames?.toast,
    classNames?.default, // <--- Why is this applied on all toasts and not just the default toast?
    classNames?.[toastType],
    toast?.classNames?.[toastType],
  )}

Can create a PR if this is unexpected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions