File tree Expand file tree Collapse file tree 6 files changed +33
-10
lines changed Expand file tree Collapse file tree 6 files changed +33
-10
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,7 @@ import Components from './_components';
44const MuiFormHelperText : Components [ 'MuiFormHelperText' ] = {
55 styleOverrides : {
66 root : {
7- ...form ,
8- marginTop : 4 ,
9- marginLeft : 4
7+ ...form
108 }
119 }
1210} ;
Original file line number Diff line number Diff line change 1+ import typography from '../typography' ;
2+ import Components from './_components' ;
3+
4+ const MuiInputAdornment : Components [ 'MuiInputAdornment' ] = {
5+ styleOverrides : {
6+ root : {
7+ color : typography . body1 ?. color
8+ }
9+ }
10+ } ;
11+
12+ export default MuiInputAdornment ;
Original file line number Diff line number Diff line change 1+ import typography from '../typography' ;
12import Components from './_components' ;
23
34const MuiInputBase : Components [ 'MuiInputBase' ] = {
45 styleOverrides : {
56 root : {
67 backgroundColor : 'white' ,
7- marginBottom : 0
8+ marginBottom : 0 ,
9+ color : typography . body1 ?. color
810 }
911 }
1012} ;
Original file line number Diff line number Diff line change 11import {
22 inputClasses ,
33 inputBaseClasses ,
4- outlinedInputClasses
4+ outlinedInputClasses ,
5+ formHelperTextClasses
56} from '@mui/material' ;
67
78import Components from './_components' ;
@@ -22,6 +23,9 @@ const MuiTextField: Components['MuiTextField'] = {
2223 [ `& .${ outlinedInputClasses . root } .${ inputClasses . focused } > fieldset` ] : {
2324 borderColor : 'black !important'
2425 } ,
26+ [ `.${ formHelperTextClasses . root } ` ] : {
27+ fontSize : '12px !important'
28+ } ,
2529 ...( ownerState . multiline === true && {
2630 ...( (
2731 includesClassNames ( ownerState , [ 'resize' ] ) ||
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import MuiDialog from './MuiDialog';
99import MuiFormControlLabel from './MuiFormControlLabel' ;
1010import MuiFormHelperText from './MuiFormHelperText' ;
1111import MuiGrid2 from './MuiGrid2' ;
12+ import MuiInputAdornment from './MuiInputAdornment' ;
1213import MuiInputBase from './MuiInputBase' ;
1314import MuiLink from './MuiLink' ;
1415import MuiMenu from './MuiMenu' ;
@@ -33,6 +34,7 @@ const components: ThemeOptions['components'] = {
3334 MuiFormControlLabel,
3435 MuiFormHelperText,
3536 MuiGrid2,
37+ MuiInputAdornment,
3638 MuiInputBase,
3739 MuiLink,
3840 MuiMenu,
Original file line number Diff line number Diff line change 1- import { TypographyOptions } from '@mui/material/styles/createTypography' ;
1+ import {
2+ TypographyOptions ,
3+ CSSProperties
4+ } from '@mui/material/styles/createTypography' ;
25
36// Pseudo typography variant for all form text.
4- export const form = {
7+ export const form : CSSProperties = {
58 fontFamily : '"Inter"' ,
6- fontSize : '14px' ,
7- fontWeight : 500 ,
8- marginBottom : '12px'
9+ fontSize : '14px !important' ,
10+ fontWeight : 600 ,
11+ margin : 0 ,
12+ marginBottom : '12px' ,
13+ letterSpacing : 0
914} ;
1015
1116// TODO: assess if line-height is needed.
You can’t perform that action at this time.
0 commit comments