Skip to content
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

[material-ui][Popover] Deprecate *Props and complete slots, slotProps #45035

Merged
merged 10 commits into from
Jan 24, 2025

Conversation

siriwatknp
Copy link
Member

Part of #41281

  • Deprecate BackdropComponent, BackdropProps, PaperProps, TransitionComponent, and TransitionProps.
  • Added root, paper, transition, and backdrop slots
  • Added a codemod for migration

@siriwatknp siriwatknp added component: Popover The React component. package: material-ui Specific to @mui/material labels Jan 16, 2025
@mui-bot
Copy link

mui-bot commented Jan 16, 2025

Netlify deploy preview

TextField: parsed: +0.46% , gzip: +0.32%
Popover: parsed: +0.73% , gzip: +0.41%

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against e866ebd

packages-internal/test-utils/src/describeConformance.tsx Outdated Show resolved Hide resolved
packages/mui-material/src/Popover/Popover.d.ts Outdated Show resolved Hide resolved
packages/mui-material/src/Popover/Popover.d.ts Outdated Show resolved Hide resolved
packages/mui-material/src/Popover/Popover.js Outdated Show resolved Hide resolved
Copy link
Member

@DiegoAndai DiegoAndai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@siriwatknp a few more comments.


Also, can we remove the externalPaperSlotProps const? We might need to move where the ownerState is defined below, but I think it's worth it to keep the code cleaner.


Also: #45035 (comment)

packages/mui-material/src/Popover/Popover.js Show resolved Hide resolved
packages/mui-material/src/Popover/Popover.js Outdated Show resolved Hide resolved
@siriwatknp siriwatknp merged commit 3c9e995 into mui:master Jan 24, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Popover The React component. package: material-ui Specific to @mui/material
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants