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

fix(toast): Add focus and hideOnEscape to enhace accessibility #16078

Closed

Conversation

SoyDiego
Copy link
Contributor

Fix #16026

DEMO in Toast

testing toast 1

DEMO in Headless Toast

testing toast 2

Copy link

vercel bot commented Jul 23, 2024

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

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
primeng ⬜️ Ignored (Inspect) Visit Preview Jul 24, 2024 6:38am

@rosenthalj
Copy link
Contributor

Can you verify this PR #16078 against reproducer : https://stackblitz.com/edit/uqdfhq

See Issue #16026 for more details about the reproducer

@SoyDiego
Copy link
Contributor Author

SoyDiego commented Jul 24, 2024

After talk with @cetincakiroglu I will close my PR but if someone need the same solution, you can use this workaround without any modification in the source code of PrimeNG and doing the same functionality manually:

Solution provided by @cetincakiroglu: https://stackblitz.com/edit/fjbene-zqmp1q?file=src%2Fapp%2Ftoast-basic-demo.html,src%2Fapp%2Ftoast-basic-demo.ts

Thanks @rosenthalj too! :)

@SoyDiego SoyDiego closed this Jul 24, 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.

Toast: Should be focused when is opened and close on ESC
2 participants