-
Notifications
You must be signed in to change notification settings - Fork 142
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
fix(APIKeyModal): implement useFocus hook #6290
Conversation
✅ Deploy Preview for ibm-products-web-components ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for carbon-for-ibm-products ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6290 +/- ##
==========================================
+ Coverage 79.57% 79.61% +0.04%
==========================================
Files 394 394
Lines 12840 12858 +18
Branches 4253 4263 +10
==========================================
+ Hits 10217 10237 +20
+ Misses 2623 2621 -2
|
packages/ibm-products/src/components/APIKeyModal/APIKeyModal.tsx
Outdated
Show resolved
Hide resolved
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 good!
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.
Can you add some unit tests for the new focus updates? I'm guessing they could be fairly similar to the tests you added to tearsheet when the new focus hook was added there.
4a92770
Closes #6245 #6252 #6249 #6247 #6375
What did you change?
Implemented the
useFocus
hook into theAPIKeyModal
componentHow did you test and verify your work?
yarn test
yarn avt
Storybook