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: add ariaTarget property for setting aria-describedby #6320

Merged
merged 3 commits into from
Aug 9, 2023

Conversation

web-padawan
Copy link
Member

Description

Related to #6287

In case of input field components, we want the tooltip to be shown on top of the element including label, so target is set to the vaadin-text-field itself. However, aria-describedby element needs to be set on the <input> element itself.

This PR adds missing API to allow configuring where to set aria-describedby attribute.

Type of change

  • Feature

Note

We could just check if the component has its own ariaTarget (the one that comes from FieldMixin) and use that to set the attribute. This would allow us to avoid adding new API at this point. However, that solution doesn't sound nice to me as it makes vaadin-tooltip coupled with the underlying implementation details of field components.

Co-authored-by: Sascha Ißbrücker <sissbruecker@vaadin.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.2.0.alpha7 and is also targeting the upcoming stable 24.2.0 version.

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.

3 participants