Skip to content

Commit

Permalink
[material-ui][docs][Popper] Update Positioned Popper demo styles (mui…
Browse files Browse the repository at this point in the history
…#40170)

Co-authored-by: Danilo Leal <[email protected]>
Co-authored-by: Sam Sycamore <[email protected]>
  • Loading branch information
3 people authored Dec 11, 2023
1 parent 73f536e commit 7f27b54
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion docs/data/material/components/popper/PositionedPopper.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ export default function PositionedPopper() {

return (
<Box sx={{ width: 500 }}>
<Popper open={open} anchorEl={anchorEl} placement={placement} transition>
<Popper
// Note: The following zIndex style is specifically for documentation purposes and may not be necessary in your application.
sx={{ zIndex: 1200 }}
open={open}
anchorEl={anchorEl}
placement={placement}
transition
>
{({ TransitionProps }) => (
<Fade {...TransitionProps} timeout={350}>
<Paper>
Expand Down
9 changes: 8 additions & 1 deletion docs/data/material/components/popper/PositionedPopper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@ export default function PositionedPopper() {

return (
<Box sx={{ width: 500 }}>
<Popper open={open} anchorEl={anchorEl} placement={placement} transition>
<Popper
// Note: The following zIndex style is specifically for documentation purposes and may not be necessary in your application.
sx={{ zIndex: 1200 }}
open={open}
anchorEl={anchorEl}
placement={placement}
transition
>
{({ TransitionProps }) => (
<Fade {...TransitionProps} timeout={350}>
<Paper>
Expand Down

0 comments on commit 7f27b54

Please sign in to comment.