-
Notifications
You must be signed in to change notification settings - Fork 10
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
Allow custom keyboard navigation in Popover #2269
Conversation
🦋 Changeset detectedLatest commit: e7952cb 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 |
GeraldRequired Reviewers
Don't want to be involved in this pull request? Comment |
Size Change: +81 B (+0.09%) Total Size: 94.1 kB
ℹ️ View Unchanged
|
npm Snapshot: Published🎉 Good news!! We've packaged up the latest commit from this PR (ae0488f) and published all packages with changesets to npm. You can install the packages in webapp by running: ./services/static/dev/tools/deploy_wonder_blocks.js --tag="PR2269" Packages can also be installed manually by running: yarn add @khanacademy/wonder-blocks-<package-name>@PR2269 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2269 +/- ##
==========================================
+ Coverage 94.30% 95.33% +1.03%
==========================================
Files 251 251
Lines 29666 29708 +42
Branches 1686 1791 +105
==========================================
+ Hits 27976 28323 +347
+ Misses 1685 1380 -305
Partials 5 5
... and 35 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
A new build was pushed to Chromatic! 🚀https://5e1bf4b385e3fb0020b7073c-nawdojkwry.chromatic.com/ Chromatic results:
|
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.
The implementation makes sense. I'm leaving some comments for you to consider about taking a different approach in the naming for that prop. Let me know what you think.
…led vs. disabled.
packages/wonder-blocks-popover/src/components/__tests__/popover.test.tsx
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! I left you some minor comments to address before landing.
Thanks a lot for all the iterations and adding all the docs 🚀.
@@ -75,6 +75,14 @@ using: | |||
**NOTE:** If the focus is set to the first focusable element inside the | |||
popover, the next shift + tab will set focus on the PopoverAnchor element. | |||
|
|||
#### When `portal={false}` |
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.
praise: Love this new section, thanks!
Summary:
Updating Popover to not override custom focus behavior for content inside Popover. Also updating component to not portal Popover into DOM and instead insert it into the DOM along side the trigger. Ideally to ensure all focus functionality works without the need of FocusManager component.
Issue: LEMS-2129
Test plan:
Go to url: ?path=/story/packages-popover-popover--custom-keyboard-navigation
See that the popover functionality works while allowing the user to only use arrow key navigation for content inside.