update styling for multiline input

This commit is contained in:
Barry Gitarts 2019-07-18 10:46:26 -04:00 committed by Barry G
parent 04289332cc
commit d5f72e9f8d

View File

@ -24,6 +24,15 @@ const styles = theme => ({
marginTop: theme.spacing.unit * 3, marginTop: theme.spacing.unit * 3,
}, },
}, },
multi: {
'label + &': {
gridRowStart: 2,
gridColumnStart: 1,
gridColumnEnd: 13,
marginTop: theme.spacing.unit * 3,
paddingRight: '24px'
},
},
input: { input: {
borderRadius: 8, borderRadius: 8,
backgroundColor: '#edf2f5', backgroundColor: '#edf2f5',
@ -90,7 +99,7 @@ function Input({
name={name} name={name}
onChange={onChange} onChange={onChange}
classes={{ classes={{
root: classes.root, root: multiline ? classes.multi : classes.root,
input: classes.input, input: classes.input,
}} }}
onBlur={onBlur} onBlur={onBlur}