add styles for error button loading state

This commit is contained in:
Alex Holliday committed 2025-02-04 14:05:39 -08:00
1 parent dc3fc7628a
commit 6cedf992a7
1 file changed
+12
+12
View File
@@ -53,6 +53,18 @@ const baseTheme = (palette) => ({
},
},
},
{
props: (props) => props.color === "error",
style: {
"&.Mui-disabled": {
backgroundColor: theme.palette.error.lowContrast,
},
"& .MuiButton-loadingIndicator": {
// styles for error variant loading indicator
color: theme.palette.error.contrastText,
},
},
},
{
props: (props) => props.variant === "group",
style: {