fixed background style when holding down select

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta 2019-12-04 23:08:33 +01:00
parent 92b6208a76
commit a866bde4d1

View File

@ -190,13 +190,15 @@ export class MonitorWidget extends ReactWidget {
controlHeight: height,
baseUnit: 2,
menuGutter: 4
}, colors: {
...theme.colors,
// `primary50`??? it's crazy but apparently, without this, we would get a light-blueish
// color when selecting an option in the select by clicking and then not releasing the button.
// https://react-select.com/styles#overriding-the-theme
primary50: 'var(--theia-accent-color4)',
}
});
const DropdownIndicator = () => {
return (
<span className='fa fa-caret-down caret'></span>
);
};
const DropdownIndicator = () => <span className='fa fa-caret-down caret' />;
return <Select
options={options}
defaultValue={defaultValue}