This commit is contained in:
Manav Rathi 2025-01-31 12:07:16 +05:30
parent ab9e1f4a3d
commit 0842edc82d
No known key found for this signature in database
2 changed files with 15 additions and 1 deletions

View File

@ -169,7 +169,10 @@ declare module "@mui/material/styles" {
* {@link Paper} to embed its contents).
*/
paper: string;
/** Currently unused. */
/**
* Drop shadow for the MUI {@link Menu} and other small floating
* elements like the {@link Notification} {@link Snackbar}.
*/
menu: string;
/** Currently unused. */
button: string;

View File

@ -774,12 +774,23 @@ const components: Components = {
},
},
MuiMenu: {
styleOverrides: {
root: {
".MuiMenu-paper": {
boxShadow: "var(--mui-palette-boxShadow-menu)",
},
},
},
},
MuiSnackbar: {
styleOverrides: {
root: {
// Set a default border radius for all snackbar's (e.g.
// notification popups).
borderRadius: "8px",
boxShadow: "var(--mui-palette-boxShadow-menu)",
},
},
},