feat(Drawer): Add full-size drawer - #12641
Conversation
Use isViewport and place drawer below Page to achieve a full-height drawer that allows Page content to scroll behind it. Fixes patternfly#12635
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (11)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. WalkthroughThe Drawer component adds the beta ChangesDrawer viewport support
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This adds viewport Drawer positioning and empty-content resize support with accompanying examples and regression coverage. No merge-blocking risk is currently identified. Sequence Diagram(s)sequenceDiagram
participant Page
participant Drawer
participant DrawerContext
participant DrawerPanelContent
participant DrawerElement
Page->>Drawer: renders with isViewport
Drawer->>DrawerContext: provides viewport state and refs
Drawer->>DrawerElement: applies viewport modifier
DrawerPanelContent->>DrawerContext: reads viewport state and refs
DrawerPanelContent->>DrawerElement: measures selected sizing element
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Use isViewport and place drawer below Page to achieve a full-height drawer that allows Page content to scroll behind it.
Fixes #12635
Summary by CodeRabbit
New Features
Bug Fixes
Tests
Documentation