-
Notifications
You must be signed in to change notification settings - Fork 587
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
Lighthouse ARIA accessibility warning #778
Comments
I have the same problem thrown up by jest-axe:
I think there needs to be a way of adding a |
First, the renderSuggestionsContainer={({ containerProps, children }) => (
<div aria-label="Suggestions" {...containerProps}>{children}</div>
)} This is however not appropriate anyway, as this container itself also contains a renderSuggestionsContainer={({ containerProps: {role, ...otherContainerProps}, children }) => (
<div {...otherContainerProps}>{children}</div>
)} This unfortunately isn’t appropriate either… as we again have no way to add a label to the renderSuggestionsContainer={({ containerProps: {role, ...otherContainerProps}, children }) => (
<div {...otherContainerProps}>
{React.Children.map(children, child => (
<ItemsList {...child.props}/>
))}
</div>
)} With react-autosuggest/src/ItemList.js Line 53 in a1ebd7d
So, to recap, that’s two bugs for react-autosuggest to fix in my opinion, even if they can be worked around:
|
I am getting a ARIA accessibility warning in Lighthouse on the following:
My React components looks like this:
Am I missing something obvious or is this a bug?
The text was updated successfully, but these errors were encountered: