-
Notifications
You must be signed in to change notification settings - Fork 828
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
Add tabIndex
prop to React Icon
component
#849
Conversation
🦋 Changeset detectedLatest commit: 2898981 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
focusable
prop to svg iconsfocusable
prop to React Icon
component
This comment was marked as resolved.
This comment was marked as resolved.
@joshblack Also, do you have any recommendation on how to fix the failing snapshots here? I mentioned the issue above. |
@broccolinisoup definitely! I think you can do: # From the top-level
yarn
yarn build
cd lib/octicons_react
yarn
yarn jest -u To update the snapshots. Sorry I missed this earlier! |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
docs/content/packages/react.mdx
Outdated
@@ -66,6 +66,23 @@ export default () => ( | |||
) | |||
``` | |||
|
|||
### `focusable` | |||
|
|||
You can add the `focusable` attribute to the SVG element via the `focusable` prop, which can be either `true`, `false`, or `auto`. |
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.
@ericwbailey I would appreciate if you could please review the docs here 🙏🏼 Feel free to suggest changes, if there is anything doesn't make sense. Thank you!!
focusable
prop to React Icon
componenttabIndex
prop to React Icon
component
👋🏼 @joshblack! Thank you so much for your review! The intent of this PR was for making sure the SVG items that have |
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.
🥳
Looks great @broccolinisoup! Thanks so much for taking this on 🙏 |
Thanks for your review @joshblack! |
Seeking a review from @primer/octicons-reviewers 👀 🙏🏼 |
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.
Looks great! Nice work, @broccolinisoup.
👋🏼 This PR adds a new prop
focusable
to theIcon
React component. It is a feedback came from the accessibility review. Please see the commentAdd focusable="false" to SVG icons
hereI don't have much knowledge around svg icons so please let me know if this is a good way of doing it or any other feedback, I would appreciate 🙏🏼