nuxt / nuxt/ui

Toast looses meaning whe duration <= 0 or progress = false

Open
#5,924 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

triage
Dominant language
TypeScript
Stars
6.9k
Forks
1.1k
Avg merge
1d 7h
Merged PRs (30d)
57

Description

Package

v4.x

Description

HI.
If you set a toast to infinite duration, the progress bar is not shown, and because is the only place when you can see if it's an error, warning, info... you lose the meaning of this toast.

Image

Would be good to add a setting to propagate the colour to the root??

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the toast component and the rendering path used when duration is <= 0 or progress is false. Check how toast type colors are currently exposed, then verify that an infinite toast still communicates whether it is an error, warning, or info without relying only on the progress bar.

Written by the indexing model from the issue text.

Assessment

Tech stack
tailwindcss, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.