Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Hide the close button when toastType is loading #516

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ynng3
Copy link

@ynng3 ynng3 commented Nov 11, 2024

Background

If the toast is closed while toastType is loading, the user will not be able to see the completed result.

Therefore, it seems that toastType is prevented from closing when it is loading.

However, since there are two issues related to this, to avoid any misunderstanding, it might be better not to render the close button when the toastType is loading.

Therefore, I am submitting a pull request to ensure that the close button is not rendered when toastType is loading.

Reference

#514 #476

Copy link

vercel bot commented Nov 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sonner ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 16, 2024 4:05pm

@ynng3 ynng3 changed the title Hide the close button when toastType is loading chore:Hide the close button when toastType is loading Dec 18, 2024
@ynng3 ynng3 changed the title chore:Hide the close button when toastType is loading chore: Hide the close button when toastType is loading Dec 18, 2024
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.

1 participant