-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
[docs][Menu] Update paper
slot JSDoc default from Paper
to PopoverPaper
#45722
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
[docs][Menu] Update paper
slot JSDoc default from Paper
to PopoverPaper
#45722
Conversation
The PopoverPaper is the real instance. In fact, if you try to just apply a new Paper instance to the slot, the UI is broken in terms of paper positioning. Signed-off-by: Andrea Chiera <[email protected]>
Netlify deploy previewhttps://deploy-preview-45722--material-ui.netlify.app/ Bundle size report |
Since there are issues in compiling the documentation, I could add this information inside the Description column? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This json files are automatically generated out of the types, we will need to change this: https://github.com/mui/material-ui/blob/master/packages/mui-material/src/Menu/Menu.d.ts#L32 instead and run
pnpm proptypes
pnpm docs:api
paper
slot JSDoc default from Paper
to PopoverPaper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andreachiera Thanks for the pull request. I made the expected changes.
Cherry-pick PRs will be created targeting branches: v6.x |
…erPaper` (#45722) Signed-off-by: Andrea Chiera <[email protected]> Co-authored-by: ZeeshanTamboli <[email protected]>
The PopoverPaper is the real instance used inside the component. If you try to just apply a new Paper instance to the slot, the UI is broken in terms of positioning.