Skip to content

Commit a866bde

Browse files
author
Akos Kitta
committed
fixed background style when holding down select
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
1 parent 92b6208 commit a866bde

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

arduino-ide-extension/src/browser/monitor/monitor-widget.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,15 @@ export class MonitorWidget extends ReactWidget {
190190
controlHeight: height,
191191
baseUnit: 2,
192192
menuGutter: 4
193+
}, colors: {
194+
...theme.colors,
195+
// `primary50`??? it's crazy but apparently, without this, we would get a light-blueish
196+
// color when selecting an option in the select by clicking and then not releasing the button.
197+
// https://react-select.com/styles#overriding-the-theme
198+
primary50: 'var(--theia-accent-color4)',
193199
}
194200
});
195-
const DropdownIndicator = () => {
196-
return (
197-
<span className='fa fa-caret-down caret'></span>
198-
);
199-
};
201+
const DropdownIndicator = () => <span className='fa fa-caret-down caret' />;
200202
return <Select
201203
options={options}
202204
defaultValue={defaultValue}

0 commit comments

Comments
 (0)