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(a11y): associate labels with inputs #1055

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

vtsvetkov-splunk
Copy link
Contributor

The problem

We use SUI components but a lot of wrappers for it. These wrappers don't pass all required props to the target component including id attribute. This causes lack of connection between label's for attribute and inputs id.
Instead the id is set on the wrapper:
Screenshot 2024-02-06 at 15 15 14

The solution

Pass id from wrapper to input.

References

@vtsvetkov-splunk vtsvetkov-splunk requested a review from a team as a code owner February 6, 2024 14:20
@vtsvetkov-splunk vtsvetkov-splunk self-assigned this Feb 6, 2024
@vtsvetkov-splunk vtsvetkov-splunk merged commit a880c45 into develop Feb 7, 2024
56 checks passed
@vtsvetkov-splunk vtsvetkov-splunk deleted the feature/a11y-labels branch February 7, 2024 08:35
@github-actions github-actions bot locked and limited conversation to collaborators Feb 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: fix input label accessibility
2 participants