Skip to content

Commit

Permalink
update textTransform only for secondary color
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette committed Nov 29, 2023
1 parent bed1d46 commit a4db64c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/ThemeRegistry/theme.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Raleway } from "next/font/google";
import { createTheme } from "@mui/material/styles";
import { buttonClasses } from "@mui/material/Button";

const raleway = Raleway({
weight: ["400", "600", "700"],
Expand Down Expand Up @@ -59,14 +60,17 @@ const theme = createTheme({
button: {
fontSize: 12,
fontWeight: 700,
textTransform: "none",
},
},
components: {
MuiButton: {
defaultProps: {
disableElevation: true,
},
styleOverrides: {
root: ({ ownerState }) =>
ownerState.color === "secondary" ? { textTransform: "none" } : {},
},
},
},
});
Expand Down

0 comments on commit a4db64c

Please sign in to comment.