Skip to content

feat: add sonner 1.7.0 features#102

Merged
xiaoluoboding merged 3 commits intoxiaoluoboding:mainfrom
sadeghbarati:sonner-v1.7.0
Nov 21, 2024
Merged

feat: add sonner 1.7.0 features#102
xiaoluoboding merged 3 commits intoxiaoluoboding:mainfrom
sadeghbarati:sonner-v1.7.0

Conversation

@sadeghbarati
Copy link
Copy Markdown
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

@vercel
Copy link
Copy Markdown

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

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Nov 13, 2024

Open in Stackblitz

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

commit: 26cc191

Comment thread src/packages/Toast.vue
Copy link
Copy Markdown
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.

Comment thread src/packages/styles.css Outdated
Comment thread src/packages/styles.css Outdated
@sadeghbarati
Copy link
Copy Markdown
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
@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