implemented graphic disable select input functionality

This commit is contained in:
Florian Scholdei
2019-04-18 17:19:55 +02:00
parent 8c215b44c2
commit a0f4f3dbe2
2 changed files with 2 additions and 9 deletions

View File

@@ -16,7 +16,7 @@ class DropDown extends React.Component<Props> {
render() {
const { options, optionValues, preselectedOption, className, disabled } = this.props;
return (
<div className={classNames(className, "select")}>
<div className={classNames(className, "select", disabled ? "disabled": "")}>
<select
value={preselectedOption ? preselectedOption : ""}
onChange={this.change}

View File

@@ -255,16 +255,9 @@ form .field:not(.is-grouped) {
.select,
.select:hover {
&:not(.is-multiple):not(.is-loading) {
> select[disabled] + &::after {
border :1px solid red;
&.disabled::after {
border-color: #7a7a7a;
}
&::after {
border-top: 1px solid blue;
}
> select[disabled] {
border: 1px solid yellow;
}
}
}