fix description height on publish page #1195

This commit is contained in:
Sean Yesmunt 2018-03-29 20:29:05 -04:00
parent 3bb530411d
commit 6a6d6db08c
3 changed files with 11 additions and 2 deletions

View file

@ -33,6 +33,7 @@
"printWidth": 100, "printWidth": 100,
"singleQuote": true "singleQuote": true
}], }],
"func-names": ["warn", "as-needed"] "func-names": ["warn", "as-needed"],
"jsx-a11y/label-has-for": 0
} }
} }

View file

@ -74,7 +74,11 @@ export class FormField extends React.PureComponent<Props> {
{error} {error}
</label> </label>
)} )}
<div className="form-field__input"> <div
className={classnames('form-field__input', {
'form-field--auto-height': type === 'markdown',
})}
>
{prefix && ( {prefix && (
<label htmlFor={name} className="form-field__prefix"> <label htmlFor={name} className="form-field__prefix">
{prefix} {prefix}

View file

@ -43,6 +43,10 @@
input[type='radio'] { input[type='radio'] {
margin-top: 5px; margin-top: 5px;
} }
&.form-field--auto-height {
height: auto;
}
} }
.form-field__help, .form-field__help,