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

docs(textfield): add aria-labels to affix buttons with icons #112

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

BalbinaK
Copy link
Contributor

Fixes WARP-337

Previously the clear and search Affix button would be announced using its icon's title, which describes the appearance of the icon. However, to satisfy the regulations, the Affix button’s aria-label should describe the purpose of the button, i.e. "Clear text", "Search". A11y team doesn't agree with this and says that we should rather describe its appearance, but Uu-tilsynet’s regulations trump those personal views.

In this PR we pass respective aria-labels to Affix components that render as buttons with icons. This means icons title will not be announced, but just the provided aria-label.

@BalbinaK BalbinaK requested a review from a team November 17, 2023 08:19
@BalbinaK BalbinaK merged commit 9b282ce into next Nov 17, 2023
3 checks passed
@BalbinaK BalbinaK deleted the fix/a11y-textfield branch November 17, 2023 08:26
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.

2 participants