-
Notifications
You must be signed in to change notification settings - Fork 30
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(Modal): Give Modal programmatic focus instead of close button #2895
Conversation
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.
couple tiny things but looks great + works great
return ( | ||
<> | ||
<Box> | ||
<FillButton onClick={toggleOpen}>Open Dialog</FillButton> |
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.
weirdly i'm unable to trigger this on Enter button press 🤔
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.
(For documentation) Turns out this is something with Storybook and having multiple dialogs opened.
If all the other stories on the dialog page are deleted, then the example works 🤷
That said, it works in prod, so writing this off as a quirk of SB
📬Published Alpha Packages:@codecademy/[email protected] |
🚀 Styleguide deploy preview ready! |
Overview
Update Modal to give programmatic focus to the Modal instead of the close button.
Update Modal to give programmatic focus to the Modal instead of the close button.
PR Checklist
Testing Instructions
—
Mono
...
PR Links and Envs