improve disabled form-field style

This commit is contained in:
btzr-io 2018-06-20 20:22:13 -06:00
parent 1e95072722
commit b49428b76b
2 changed files with 6 additions and 0 deletions

View file

@ -82,6 +82,7 @@ export class FormField extends React.PureComponent<Props> {
<div
className={classnames('form-field', {
'form-field--stretch': stretch || type === 'markdown',
'form-field--disabled': inputProps.disabled,
})}
>
{(label || errorMessage) && (

View file

@ -41,6 +41,11 @@
}
}
.form-field.form-field--disabled {
opacity: 0.4;
pointer-events: none;
}
.form-field--SimpleMDE {
display: block;
width: 100%;