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

Is there anyway to make the assistiveHint attribute optional? #607

Open
stephenjmcneill1971 opened this issue Nov 7, 2023 · 1 comment

Comments

@stephenjmcneill1971
Copy link

stephenjmcneill1971 commented Nov 7, 2023

I would like to remove the assistiveHint text

"When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures."

and the related aria-describedby being rendered. Is this an option.

Alternatively could we make it visible and styled

@edwardhorsford
Copy link
Contributor

You probably want to use the tAssistiveHint option. I imagine you could provide your own function that just returns an empty string. Note you'd want to test this works as you intend as I expect the aria-describedBy might still get populated.

As noted on your comment in the other thread, if you want to show something visually you'd need to add this yourself.

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

No branches or pull requests

2 participants