-
Notifications
You must be signed in to change notification settings - Fork 37
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
Added ARIA:banner role #21
Added ARIA:banner role #21
Conversation
Thank you so much for the pr! Would you mind adding banner aria to the readme :) |
closes(#13) |
], | ||
"body":[ | ||
"role='banner'", | ||
"tabIndex={0}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to add a tabIndex on this aria role
tabIndex='0'
makes components focusable typically we add tabIndex to form elements like select, inputs to allow users who navigate using the keyboard to be able to interact with the element.
Since banners are typically containers for other elements we do not need to add tabIndex.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK Sure! Then I am removing tabIndex=0 and adding banner aria to readme.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking good! Small nit
Co-authored-by: Kendall Gassner <[email protected]>
Done! Thank You For The Help! |
What Changed
Added the ARIA: banner role in react-snippets (#13)
Why
Todo: