-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Panel: Improve scroll view handling when expanding (#23327)
* Add scrollIntoView interaction for PanelBody Refactor interactions with Reakit/Disclosure. Add custom hooks for ref and rendering handling. * Adjust PanelBody story to include scrollIntoView example * Adjust bottom padding for Layout sidebar * Allow for opened prop to control disclosure state * Update PanelBody tests * Update snapshots * Fix tests for PanelColorSettings + Update snapshots * Add new PanelBody props to README * Add react-merge-refs dependency * Use react-merge-refs util * Update test snapshots * Remove disableSmoothScrollIntoView prop from PanelBody * Update snapshots * Remove focusable prop * Remove use-combined-refs - No longer needed * Remove onToggle from useUpdateEffect deps array * Adjust onToggle callback handling * Remove Reakit/Disclosure integration (for now) * Update PanelBody tests * Update snapshots * Fix initialOpen handling for PanelBody * Remove unnecessary act wrappers in panel body tests
- Loading branch information
Q
authored
Jul 14, 2020
1 parent
eb856ef
commit bb00ad8
Showing
12 changed files
with
347 additions
and
258 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.