.menu > li > a.disabled {
color: #bbb !important;
+ cursor: not-allowed !important;
+ pointer-events: none !important;
}
.menu > li > a:hover,
border-color: var(--red);
}
+input.disabled,
+input:disabled,
+textarea.disabled,
+textarea:disabled,
+select.disabled,
+select:disabled {
+ color: var(--disableGrayText) !important;
+ border-color: var(--disableGrayBorder) !important;
+ background: var(--disableGrayBg) !important;
+ cursor: not-allowed !important;
+ pointer-events: none !important;
+ box-shadow: none !important;
+}
+
input[type='text'],
input[type='password'],
input[type='email'],
.button:disabled:focus,
input[type='submit']:disabled:focus,
input[type='button']:disabled:focus {
- color: #bbb !important;
- border-color: #ddd !important;
- background: #ebebeb !important;
+ color: var(--disableGrayText) !important;
+ border-color: var(--disableGrayBorder) !important;
+ background: var(--disableGrayBg) !important;
cursor: not-allowed !important;
box-shadow: none !important;
}
gray60: '#999',
gray40: '#404040',
+ disableGrayText: '#bbb',
+ disableGrayBorder: '#ddd',
+ disableGrayBg: '#ebebeb',
+
barBackgroundColor: '#f3f3f3',
barBorderColor: '#e6e6e6',
'icon-checkbox-checked': selected,
'icon-checkbox-invisible': disabled
});
- const activeClass = classNames({
- active: this.props.active,
- disabled,
- 'cursor-not-allowed': disabled
- });
+ const activeClass = classNames({ active: this.props.active, disabled });
return (
<li>
exports[`should render disabled element 1`] = `
<li>
<a
- className="disabled cursor-not-allowed"
+ className="disabled"
href="#"
onClick={[Function]}
onFocus={[Function]}
}
.Select.is-disabled > .Select-control {
- background-color: #f9f9f9;
+ background-color: var(--disableGrayBg) !important;
+ border-color: var(--disableGrayBorder) !important;
}
.Select.is-disabled > .Select-control:hover {
- box-shadow: none;
+ box-shadow: none !important;
}
.Select.is-disabled .Select-arrow-zone {
- cursor: default;
- pointer-events: none;
+ cursor: not-allowed !important;
+ pointer-events: none !important;
+}
+
+.Select.is-disabled .Select-placeholder,
+.Select.is-disabled .Select-value {
+ color: var(--disableGrayText) !important;
}
.Select-control {