-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Dialog: Close Buttons must have discernible text #14977
Comments
There is actually a undocumented property "closeAriaLabel" that can be used to set aria-label to the close button. |
this doesn't work with dynamic dialog. When you add the closeAriaLabel in the config it still doesn't apply it to the close button |
|
This issue has been automatically marked as stale. If this issue is still affecting you with the latest version, please leave any comment, and we will keep it open. We are sorry that we have not been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you for your understanding! |
Shouldn't this be using primeng setTranslations? I would expect that to have a close property that would then be used by default for the dialogs rather than requiring consumer to provide one to each instance. DynamicDialog seems to do it. |
Describe the bug
The Axe Dev Tools for Accessibility is reporting that the 'Buttons must have discernible text':
Can we have appropriate aria label like "Close the dialog" added please?
Environment
Windows 10
Reproducer
No response
Angular version
17.2.3
PrimeNG version
17.9.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.18.0
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
No response
The text was updated successfully, but these errors were encountered: