Skip to content

Toasts are being rendered backgroundless #134

@ssr765

Description

@ssr765

The toasts are being rendered without background, it is solved easily specifying the background color in toast-options prop, but then ignores the colors applied via rich-colors prop. I'm using toast.promise that has no rich color assigned.

This is my implementation of the Toaster:

  <Toaster
    :dark="dark"
    :visible-toasts="5"
    :toast-options="{
      style: {
        border: '1px solid',
      },
      descriptionClass: 'whitespace-pre-line text-xs! leading-4!',
    }"
    close-button
    rich-colors
    :position="position"
    class="pointer-events-auto"
  />

But still happens with an unconfigured Toaster.

Ah yes, and the dark mode isn't being applied either (dark variable is from VueUse's useDark method).

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