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

Added ARIA:banner role #21

Merged
merged 4 commits into from
Jul 15, 2021

Conversation

developer-diganta
Copy link
Contributor

What Changed

Added the ARIA: banner role in react-snippets (#13)

Why

Todo:

  • Add Semantic Version Label
  • Add tests
  • Add docs

@kendallgassner
Copy link
Collaborator

kendallgassner commented Jul 15, 2021

Thank you so much for the pr! Would you mind adding banner aria to the readme :)

@kendallgassner
Copy link
Collaborator

closes(#13)

],
"body":[
"role='banner'",
"tabIndex={0}"
Copy link
Collaborator

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.

Copy link
Contributor Author

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.

Copy link
Collaborator

@kendallgassner kendallgassner left a 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

README.md Outdated Show resolved Hide resolved
Co-authored-by: Kendall Gassner <[email protected]>
@developer-diganta
Copy link
Contributor Author

Done! Thank You For The Help!

@kendallgassner kendallgassner merged commit d56928c into intuit:master Jul 15, 2021
@developer-diganta developer-diganta deleted the add-aria-banner branch July 15, 2021 21:08
@developer-diganta developer-diganta restored the add-aria-banner branch July 15, 2021 21:08
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