improve disabled form-field style
This commit is contained in:
parent
1e95072722
commit
b49428b76b
2 changed files with 6 additions and 0 deletions
|
@ -82,6 +82,7 @@ export class FormField extends React.PureComponent<Props> {
|
||||||
<div
|
<div
|
||||||
className={classnames('form-field', {
|
className={classnames('form-field', {
|
||||||
'form-field--stretch': stretch || type === 'markdown',
|
'form-field--stretch': stretch || type === 'markdown',
|
||||||
|
'form-field--disabled': inputProps.disabled,
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
{(label || errorMessage) && (
|
{(label || errorMessage) && (
|
||||||
|
|
|
@ -41,6 +41,11 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.form-field.form-field--disabled {
|
||||||
|
opacity: 0.4;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
.form-field--SimpleMDE {
|
.form-field--SimpleMDE {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
Loading…
Reference in a new issue