From 60667c6fdfe456280839df324e6e8a87e56c4026 Mon Sep 17 00:00:00 2001 From: Nar Cuenca Date: Thu, 19 Dec 2024 12:14:12 +0800 Subject: [PATCH] task: multiple updates to elevation and border radius --- src/theme/index.tsx | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/theme/index.tsx b/src/theme/index.tsx index ca9227c..3a8a1a4 100644 --- a/src/theme/index.tsx +++ b/src/theme/index.tsx @@ -242,9 +242,14 @@ const components: Components = { ], }, MuiDialog: { + defaultProps: { + PaperProps: { + elevation: 8, + }, + }, styleOverrides: { paper: { - borderRadius: "4px", + borderRadius: "8px", }, paperWidthXs: { width: "480px", @@ -298,6 +303,16 @@ const components: Components = { }, }, MuiMenu: { + defaultProps: { + slotProps: { + paper: { + elevation: 8, + sx: { + borderRadius: 2, + }, + }, + }, + }, styleOverrides: { list: { minWidth: "240px", @@ -709,6 +724,14 @@ const components: Components = { MuiAutocomplete: { defaultProps: { popupIcon: , + slotProps: { + paper: { + elevation: 8, + sx: { + borderRadius: 2, + }, + }, + }, }, styleOverrides: { inputRoot: ({ ownerState }: { ownerState: any }) => ({