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

Accessibility support? #129

Open
rahul-desai3 opened this issue Nov 3, 2017 · 0 comments
Open

Accessibility support? #129

rahul-desai3 opened this issue Nov 3, 2017 · 0 comments

Comments

@rahul-desai3
Copy link

I am using module react-a11y to test my app for accessibility. It is throwing following 2 errors multiple times after I integrated module react-notification-system and the notification is shown in the UI:

You have a click handler on a non-interactive element but no `tabIndex` DOM property. The element will not be navigable or interactive by keyboard users. http://www.w3.org/TR/wai-aria-practices/#focus_tabindex

You have a click handler on a non-interactive element but no `role` DOM property. It will be unclear what this element is supposed to do to a screen-reader user. http://www.w3.org/TR/wai-aria/roles#role_definitions

I tried to do the following but it didn't help:

<Notifications
  notifications={notifications}
  role="contentInfo"
  tabIndex="0"
/>

Any pointers?

Note: I am using react-notification-system-redux module as the wrapper for react-notification-system

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants