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

[core, popover2] feat: add aria-haspopup attribute #4805

Merged
merged 1 commit into from
Jul 9, 2021

Conversation

adidahiya
Copy link
Contributor

Fixes #4794

Checklist

  • Includes tests
  • Update documentation

Changes proposed in this pull request:

Add aria-haspopup="true" attribute to the target element rendered by Popover & Popover2 to indicate that it triggers an interactive popup element. I've gone with the generic value of "true"; if users wish to customize this they can use the Popover2 renderTarget prop API.

Docs: https://developer.mozilla.org/en-US/docs/Web/API/Element/ariaHasPopup

Reviewers should focus on:

Attribute is being added to the right element... it should be the one which has the popover mouse event handlers, I think.

Screenshot

@blueprint-bot
Copy link

[core,popover2] feat: add aria-haspopup attribute

Previews: documentation | landing | table

@adidahiya adidahiya merged commit 561ea3a into develop Jul 9, 2021
@adidahiya adidahiya deleted the ad/popover-aria branch July 9, 2021 21:58
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.

Popover targets should have aria-haspopup
2 participants