theme update

This commit is contained in:
Alex Holliday committed 2025-10-03 12:56:52 -07:00
1 parent 6c6fc28f6e
commit 0018c452bb
3 files changed
+15 -14

No files matched your search

@@ -20,6 +20,10 @@ export const RadioInput: React.FC<RadioInputProps> = ({ ...props }) => {
boxShadow: `inset 0 0 0 1px ${theme.palette.primary.contrastText}70`, // Use theme text color for the outline boxShadow: `inset 0 0 0 1px ${theme.palette.primary.contrastText}70`, // Use theme text color for the outline
}, },
mt: theme.spacing(0.5), mt: theme.spacing(0.5),
padding: 0,
"& .MuiSvgIcon-root": {
fontSize: 16,
},
}} }}
/> />
); );
@@ -1,6 +1,7 @@
import { forwardRef } from "react"; import { forwardRef } from "react";
import TextField from "@mui/material/TextField"; import TextField from "@mui/material/TextField";
import type { TextFieldProps } from "@mui/material"; import type { TextFieldProps } from "@mui/material";
import { typographyLevels } from "@/Utils/Theme/v2/palette";
export const TextInput = forwardRef<HTMLInputElement, TextFieldProps>( export const TextInput = forwardRef<HTMLInputElement, TextFieldProps>(
function TextInput(props, ref) { function TextInput(props, ref) {
@@ -8,6 +9,12 @@ export const TextInput = forwardRef<HTMLInputElement, TextFieldProps>(
<TextField <TextField
{...props} {...props}
inputRef={ref} inputRef={ref}
sx={{
"& .MuiOutlinedInput-root": {
height: 34,
fontSize: typographyLevels.base,
},
}}
/> />
); );
} }
+4 -14
View File
@@ -56,22 +56,12 @@ export const theme = (mode: string, palette: any) =>
}), }),
}, },
}, },
MuiTextField: {
styleOverrides: { MuiOutlinedInput: {
root: () => ({
"& .MuiOutlinedInput-root": {
height: 34,
fontSize: typographyLevels.base,
},
}),
},
},
MuiRadio: {
styleOverrides: { styleOverrides: {
root: { root: {
padding: 0, "&.Mui-focused .MuiOutlinedInput-notchedOutline": {
"& .MuiSvgIcon-root": { borderColor: palette.accent.main,
fontSize: 16,
}, },
}, },
}, },