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(TextInput): add warning if aria label and label are same #730

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

nataliadelmar
Copy link
Collaborator

@nataliadelmar nataliadelmar commented Dec 12, 2024

Description

Many times I have seen devs falling into adding the same string to the label and to the aria-label with the aim of ensuring a11y. That would, however, open an a11y bug as SR would read the same string twice when focusing on the input.
To avoid that, we have added a console warn.

Links

SPARK-582966

@nataliadelmar nataliadelmar added the validated If the pull request is validated automation. label Dec 12, 2024
@nataliadelmar nataliadelmar merged commit 830e8f7 into momentum-design:master Dec 13, 2024
9 of 10 checks passed
Copy link

🎉 This PR is included in version 26.185.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released validated If the pull request is validated automation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants