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

feat: add sonner 1.7.0 features #102

Merged
merged 3 commits into from
Nov 21, 2024

Conversation

sadeghbarati
Copy link
Contributor

@sadeghbarati sadeghbarati commented Nov 13, 2024

Screenshot 2024-11-13 at 11 19 07 PM

@xiaoluoboding 🙌

There is a bug that is not present in other sonner ports when you fast switch/click between positions like

top-right, top-left, and other positions and then fast hover/mouseenter on toasts, you can see offset is not calculated properly, I tried to fix it but couldn't find the problem

Copy link

vercel bot commented Nov 13, 2024

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

Name Status Preview Comments Updated (UTC)
vue-sonner ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 14, 2024 6:25pm

Copy link

pkg-pr-new bot commented Nov 13, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/xiaoluoboding/vue-sonner@102

commit: 26cc191

Copy link
Owner

@xiaoluoboding xiaoluoboding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing the CSS may cause issues with the dark mode of the close-button.

src/packages/styles.css Outdated Show resolved Hide resolved
src/packages/styles.css Outdated Show resolved Hide resolved
@sadeghbarati
Copy link
Contributor Author

Removed :where pseudo-class

Only two things left for review

  1. onUnmounted or onBeforeUnmount

  2. the offset bug on switch position

@xiaoluoboding xiaoluoboding merged commit 0f456eb into xiaoluoboding:main Nov 21, 2024
5 checks passed
@sadeghbarati sadeghbarati deleted the sonner-v1.7.0 branch December 1, 2024 08:01
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.

2 participants