Skip to content

Commit

Permalink
Merge pull request #1558 from okta/ee/alert-icons
Browse files Browse the repository at this point in the history
Apply ODS Icons to MuiAlert, set props for SvgIcon
  • Loading branch information
edburyenegren-okta authored Aug 30, 2022
2 parents fa53ccb + 52b2e7d commit 0e91980
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,22 @@
import type { ThemeOptions } from "@mui/material";
//import radioClasses from "@mui/material";
import { outlinedInputClasses } from "@mui/material/OutlinedInput";
import {
AlertTriangleFilledIcon,
CheckCircleFilledIcon,
InformationCircleFilledIcon,
} from "../../components/Icon";

export const components: ThemeOptions["components"] = {
MuiAlert: {
defaultProps: {
iconMapping: {
error: <AlertTriangleFilledIcon />,
info: <InformationCircleFilledIcon />,
success: <CheckCircleFilledIcon />,
warning: <AlertTriangleFilledIcon />,
},
},
styleOverrides: {
root: ({ ownerState, theme }) => ({
padding: theme.spacing(4),
Expand Down Expand Up @@ -694,6 +707,12 @@ export const components: ThemeOptions["components"] = {
},
},
},
MuiSvgIcon: {
defaultProps: {
fontSize: "inherit",
color: "inherit",
},
},
MuiTab: {
defaultProps: {
iconPosition: "start",
Expand Down

0 comments on commit 0e91980

Please sign in to comment.