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

content: using "aria-labelledby", as suggested by the Accessibility Guidelines, never worked with modals #3809

Open
KernelLeak opened this issue Aug 30, 2024 · 0 comments
Labels
triage New issues

Comments

@KernelLeak
Copy link

URL

https://ionic.io/docs/accessibility/ion-modal

Issue Description

In the Accessibility Guidelines for modals, it says:

In the above example the logical choice for an accessible name would be the ion-title of "Welcome". We can associate the modal with this by setting the aria-labelled attribute and giving the ion-title an id:

Leaving aside that it should be aria-labelledby, this has never worked as the only two attributes that are pushed down to the actual div that also gets assigned the role attribute of "dialog" are role and aria-label, as seen here in the code for modal.

So either the code needs a fix to support aria-labelledby, or the docs need to be adjusted.

@KernelLeak KernelLeak added the triage New issues label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage New issues
Projects
None yet
Development

No branches or pull requests

1 participant