Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rudream authored and github-actions committed Aug 21, 2023
1 parent b2973bf commit 3a7e820
Showing 1 changed file with 32 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ import ReactSelectCreatable from 'react-select/creatable';

const styles = theme => ({
multiValue: (base, state) => {
return state.data.isFixed ? { ...base, backgroundColor: 'gray' } : base;
return state.data.isFixed
? { ...base, backgroundColor: `${theme.colors.spotBackground[2]}` }
: { ...base, backgroundColor: `${theme.colors.spotBackground[0]}` };
},
multiValueLabel: (base, state) => {
if (state.data.isFixed) {
Expand All @@ -31,19 +33,45 @@ const styles = theme => ({
return { ...base, paddingRight: 6 };
}

return { ...base, color: theme.colors.text.primaryInverse };
return { ...base, color: theme.colors.text.primary };
},
multiValueRemove: (base, state) => {
return state.data.isFixed || state.isDisabled
? { ...base, display: 'none' }
: {
...base,
cursor: 'pointer',
color: theme.colors.text.primaryInverse,
color: theme.colors.text.primary,
};
},
menuList: base => {
return { ...base, color: theme.colors.text.primaryInverse };
return {
...base,
color: theme.colors.text.primary,
backgroundColor: theme.colors.spotBackground[0],
};
},

control: base => ({
...base,
backgroundColor: theme.colors.levels.surface,
}),

input: base => ({
...base,
color: theme.colors.text.primary,
}),

menu: base => ({ ...base, backgroundColor: theme.colors.levels.elevated }),

option: (base, state) => {
if (state.isFocused) {
return {
...base,
backgroundColor: theme.colors.spotBackground[1],
};
}
return base;
},
});

Expand Down

0 comments on commit 3a7e820

Please sign in to comment.