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: use ariaTarget property to set popover ARIA attributes if possible #8721

Merged
merged 2 commits into from
Feb 25, 2025

Conversation

web-padawan
Copy link
Member

@web-padawan web-padawan commented Feb 24, 2025

Description

Fixes #8703

Added ariaTarget property similar to the one that was previously added for vaadin-tooltip in #6320.
Example: when using vaadin-text-field as a popover target, use textField.inputElement as ariaTarget.

UPD: as suggested #8721 (comment), changed to use target.ariaTarget if possible.
This would be somewhat aligned with #8732 where we use target.focusElement.

Also, changed the popover observers a bit to make it easier to remove ARIA attributes when clearing target.

Type of change

  • Feature (a11y)

@web-padawan web-padawan requested a review from vursen February 24, 2025 09:07
@web-padawan web-padawan force-pushed the feat/popover-aria-target branch from dd22eec to 465d625 Compare February 25, 2025 11:14
@web-padawan web-padawan changed the title feat: add ariaTarget property to popover to set ARIA attributes fix: use ariaTarget property to set popover ARIA attributes if possible Feb 25, 2025
@web-padawan web-padawan removed the request for review from vursen February 25, 2025 14:16
@web-padawan web-padawan merged commit 54fac2a into main Feb 25, 2025
9 checks passed
@web-padawan web-padawan deleted the feat/popover-aria-target branch February 25, 2025 14:17
web-padawan added a commit that referenced this pull request Feb 25, 2025
…le (#8721) (#8735)

Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
web-padawan added a commit that referenced this pull request Feb 25, 2025
…le (#8721) (#8734)

Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
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.

Popover sets ARIA attributes on field component root instead of input element
3 participants