Skip to content

Commit

Permalink
fix: footer feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Jul 6, 2023
1 parent 18f42fc commit 953aca6
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 10 deletions.
4 changes: 1 addition & 3 deletions src/theme/components/MuiFormHelperText.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import Components from './_components';
const MuiFormHelperText: Components['MuiFormHelperText'] = {
styleOverrides: {
root: {
...form,
marginTop: 4,
marginLeft: 4
...form
}
}
};
Expand Down
12 changes: 12 additions & 0 deletions src/theme/components/MuiInputAdornment.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import typography from '../typography';
import Components from './_components';

const MuiInputAdornment: Components['MuiInputAdornment'] = {
styleOverrides: {
root: {
color: typography.body1?.color
}
}
};

export default MuiInputAdornment;
4 changes: 3 additions & 1 deletion src/theme/components/MuiInputBase.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import typography from '../typography';
import Components from './_components';

const MuiInputBase: Components['MuiInputBase'] = {
styleOverrides: {
root: {
backgroundColor: 'white',
marginBottom: 0
marginBottom: 0,
color: typography.body1?.color
}
}
};
Expand Down
6 changes: 5 additions & 1 deletion src/theme/components/MuiTextField.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import {
inputClasses,
inputBaseClasses,
outlinedInputClasses
outlinedInputClasses,
formHelperTextClasses
} from '@mui/material';

import Components from './_components';
Expand All @@ -22,6 +23,9 @@ const MuiTextField: Components['MuiTextField'] = {
[`& .${outlinedInputClasses.root}.${inputClasses.focused} > fieldset`]: {
borderColor: 'black !important'
},
[`.${formHelperTextClasses.root}`]: {
fontSize: '12px !important'
},
...(ownerState.multiline === true && {
...((
includesClassNames(ownerState, ['resize']) ||
Expand Down
2 changes: 2 additions & 0 deletions src/theme/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import MuiDialog from './MuiDialog';
import MuiFormControlLabel from './MuiFormControlLabel';
import MuiFormHelperText from './MuiFormHelperText';
import MuiGrid2 from './MuiGrid2';
import MuiInputAdornment from './MuiInputAdornment';
import MuiInputBase from './MuiInputBase';
import MuiLink from './MuiLink';
import MuiMenu from './MuiMenu';
Expand All @@ -33,6 +34,7 @@ const components: ThemeOptions['components'] = {
MuiFormControlLabel,
MuiFormHelperText,
MuiGrid2,
MuiInputAdornment,
MuiInputBase,
MuiLink,
MuiMenu,
Expand Down
15 changes: 10 additions & 5 deletions src/theme/typography.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import { TypographyOptions } from '@mui/material/styles/createTypography';
import {
TypographyOptions,
CSSProperties
} from '@mui/material/styles/createTypography';

// Pseudo typography variant for all form text.
export const form = {
export const form: CSSProperties = {
fontFamily: '"Inter"',
fontSize: '14px',
fontWeight: 500,
marginBottom: '12px'
fontSize: '14px !important',
fontWeight: 600,
margin: 0,
marginBottom: '12px',
letterSpacing: 0
};

// TODO: assess if line-height is needed.
Expand Down

0 comments on commit 953aca6

Please sign in to comment.