Make select disabled more clear and unify input fonts

This commit is contained in:
Mitchell McCaffrey
2020-10-10 12:15:46 +11:00
parent 0f6f9f8c42
commit f7ba35ec29
2 changed files with 13 additions and 3 deletions

View File

@@ -23,6 +23,7 @@ function Select({ creatable, ...props }) {
borderColor: theme.colors.gray,
borderStyle: "solid",
borderWidth: "1px",
fontFamily: theme.fonts.body2,
}),
control: (provided, state) => ({
...provided,
@@ -33,12 +34,20 @@ function Select({ creatable, ...props }) {
singleValue: (provided, state) => ({
...provided,
color: getColor(state),
fontFamily: theme.fonts.body2,
}),
option: (provided, state) => ({
...provided,
color: getColor(state),
opacity: state.isDisabled ? 0.5 : 1,
}),
dropdownIndicator: (provided, state) => ({
...provided,
color: getColor(state),
":hover": {
color: state.isDisabled ? theme.colors.gray : theme.colors.primary,
color: state.isDisabled
? theme.colors.disabled
: theme.colors.primary,
},
}),
input: (provided, state) => ({