[docs][modal] Add nested modal guidance by JakeSaterlay · Pull Request #46507 · mui/material-ui (original) (raw)
Hi there!
From reading the documentations explanation on nested modals and best practice, I can see that it says the following:
"stacking of more than two modals, or any two modals with a backdrop is discouraged."
To me this sounds like stacking any two modals where the backdrop changes should be discouraged, and I can see that in the example, opening the nested modal creates another backdrop over the original, which makes it darker.
I have added hideBackdrop on to the child modal in the example, to give a better idea of how this practice could be followed better, as per my interpretation of the description.
Happy to be told otherwise if this is incorrect! Thank you for your time.
- I have followed (at least) the PR section of the contributing guide.