fix(drawer): motion, sizing, scroll, and overlay story docs#620
Open
gab-az wants to merge 6 commits into
Open
Conversation
Centralize useDrawerMotionState in drawer-portal and inject it into overlay and content so enter/exit transitions stay in sync. Defer painting closed state on exit so the slide-out animation can run. Co-authored-by: Cursor <cursoragent@cursor.com>
Drive drawer max-width via inline shell styles and reactive size prop. Use data-fluid on Panel to avoid medium cap conflicts, and md:w-full on the shell so medium and large presets render at distinct widths. Co-authored-by: Cursor <cursoragent@cursor.com>
Render ScrollArea inside PanelContent when drawer-content provides scroll host context so only the body scrolls while header and footer stay in the panel flex layout. Co-authored-by: Cursor <cursoragent@cursor.com>
Match panel header and footer inset tokens for consistent shell spacing. Co-authored-by: Cursor <cursoragent@cursor.com>
Add Usage blocks, Sizes and ScrollContent drawer stories, and align Dialog Default with the shared PanelHeader, PanelContent, and PanelFooter anatomy. Co-authored-by: Cursor <cursoragent@cursor.com>
Use button-triggered drawer with the standard panel regions and drop extra playground and accessibility variants from the template story. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
size, fluid Panel, andmd:w-fullshell positioning.ScrollAreainPanelContentwhile header and footer stay in the panel flex layout.Commits
fix(drawer): share motion state and defer close for exit animationfix(drawer): apply size presets on shell and fluid panel widthfeat(drawer): scroll PanelContent with ScrollArea in drawer contextfix(panel): align header and footer horizontal padding to spacing-lgdocs(storybook): document drawer and dialog panel shell usagedocs(storybook): simplify ChangePlanDrawer to a single Default storyTest plan
Made with Cursor