Skip to content

[drawer] Warn when popup is missing viewport - #4495

Merged
atomiks merged 3 commits into
mui:masterfrom
atomiks:codex/drawer-popup-scroll-lock
Apr 1, 2026
Merged

atomiks merged 3 commits into
mui:masterfrom
atomiks:codex/drawer-popup-scroll-lock

Conversation

@atomiks

@atomiks atomiks commented Mar 31, 2026 •

Copy link
Copy Markdown
Contributor

This changes Drawer to warn in development when Drawer.Popup is rendered without Drawer.Viewport.

Changes

  • Add a dev-only warning in Drawer.Popup when the viewport context is missing.
  • Keep the existing runtime behavior and Drawer composition unchanged in production.
  • Update Drawer.Popup tests to use the valid tree in conformance coverage and add a warning test.

@atomiks atomiks added component: drawer Changes related to the drawer component. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. labels Mar 31, 2026
@pkg-pr-new

pkg-pr-new Bot commented Mar 31, 2026 •

Copy link
Copy Markdown
  • base-ui-tanstack-start

  • vite-css-base-ui-example

    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/react@4495
    
    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/utils@4495
    

commit: a619cbf

@mui-bot

mui-bot commented Mar 31, 2026 •

Copy link
Copy Markdown

Bundle size report

Bundle Parsed size Gzip size
@base-ui/react 0B(0.00%) 0B(0.00%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

@netlify

netlify Bot commented Mar 31, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit a619cbf
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/69ccb9a1ae725a00089d6941
😎 Deploy Preview https://deploy-preview-4495--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@atomiks atomiks changed the title [drawer] Move swipe scroll lock into popup [drawer] Warn when popup is missing viewport Mar 31, 2026
@atomiks
atomiks marked this pull request as ready for review March 31, 2026 11:49
@atomiks
atomiks merged commit 88e67f0 into mui:master Apr 1, 2026
7 checks passed
@atomiks
atomiks deleted the codex/drawer-popup-scroll-lock branch April 1, 2026 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: drawer Changes related to the drawer component. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants