Skip to content

Commit 953aca6

Browse files
committed
fix: footer feedback
1 parent 18f42fc commit 953aca6

File tree

6 files changed

+33
-10
lines changed

6 files changed

+33
-10
lines changed

src/theme/components/MuiFormHelperText.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ import Components from './_components';
44
const MuiFormHelperText: Components['MuiFormHelperText'] = {
55
styleOverrides: {
66
root: {
7-
...form,
8-
marginTop: 4,
9-
marginLeft: 4
7+
...form
108
}
119
}
1210
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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;

src/theme/components/MuiInputBase.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
import typography from '../typography';
12
import Components from './_components';
23

34
const MuiInputBase: Components['MuiInputBase'] = {
45
styleOverrides: {
56
root: {
67
backgroundColor: 'white',
7-
marginBottom: 0
8+
marginBottom: 0,
9+
color: typography.body1?.color
810
}
911
}
1012
};

src/theme/components/MuiTextField.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import {
22
inputClasses,
33
inputBaseClasses,
4-
outlinedInputClasses
4+
outlinedInputClasses,
5+
formHelperTextClasses
56
} from '@mui/material';
67

78
import 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']) ||

src/theme/components/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import MuiDialog from './MuiDialog';
99
import MuiFormControlLabel from './MuiFormControlLabel';
1010
import MuiFormHelperText from './MuiFormHelperText';
1111
import MuiGrid2 from './MuiGrid2';
12+
import MuiInputAdornment from './MuiInputAdornment';
1213
import MuiInputBase from './MuiInputBase';
1314
import MuiLink from './MuiLink';
1415
import 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,

src/theme/typography.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
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.

0 commit comments

Comments
 (0)