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

feat(ui5-popup): add support for aria-label #1898

Merged
merged 3 commits into from
Jul 1, 2020
Merged

Conversation

vladitasev
Copy link
Contributor

This change adds aria-label support for ui5-popup. The implementation in ui5-popover and ui5-dialog is:

  • if the user passed aria-label, use it and do not set aria-labelledby in the shadow root (as it is stronger and will suppress aria-label)
  • otherwise, set aria-labelledby normally (to point to the id of the popup's header).

Third-party popups will have full freedom to determine when aria-label and aria-labelledby are set by overriding the protected methods, as before.

In addition, added the missing description for ariaLabel for ui5-input.

closes: #1896

@vladitasev vladitasev merged commit 69d8ee4 into master Jul 1, 2020
@vladitasev vladitasev deleted the popups-aria-label branch July 1, 2020 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

a11y - <ui5-popover> control doesn't support aria-label
2 participants