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

[bug]: Toast - does not close when clicking/keyboard-enter the closing-X button on the right #4292

Open
1 task
aedu-hostettler opened this issue Dec 15, 2024 · 3 comments · May be fixed by #4332
Open
1 task
Assignees
Labels
🐞 bug Something isn't working 📦 styles Related to the @swisspost/design-system-styles package

Comments

@aedu-hostettler
Copy link

aedu-hostettler commented Dec 15, 2024

Describe the bug
does not close when clicking/keyboard-enter the closing-X button on the right.

And also add type="button" to the example code on storybook-documentation, otherwise forms are submitted on clicking the x button.

Screenshots
Image

Tasks

Preview Give feedback
@aedu-hostettler aedu-hostettler added the 🐞 bug Something isn't working label Dec 15, 2024
@gfellerph gfellerph added the 📦 styles Related to the @swisspost/design-system-styles package label Dec 16, 2024
@gfellerph gfellerph added this to the Long Term Support milestone Dec 16, 2024
@gfellerph
Copy link
Member

@swisspost/design-system add type=button in the docs.

@gfellerph gfellerph moved this from 👀 Triage to 💻 Ready for development in Design System Production Board Dec 16, 2024
@aedu-hostettler
Copy link
Author

just as a small additional info: even with type="button" on the closing button, does not close on click/keyboard events.

@gfellerph
Copy link
Member

Similar to #4280, hiding the element on close click should be implemented for the moment. We'll use this ticket to update the documentation.

@schaertim schaertim self-assigned this Dec 18, 2024
@schaertim schaertim moved this from 💻 Ready for development to 🕹️ Coding in progress in Design System Production Board Dec 18, 2024
@schaertim schaertim moved this from 🕹️ Coding in progress to 🤬 Dev in Code Review in Design System Production Board Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working 📦 styles Related to the @swisspost/design-system-styles package
Projects
Status: 🤬 Dev in Code Review
Development

Successfully merging a pull request may close this issue.

3 participants