Skip to content

Commit f635751

Browse files
author
Akos Kitta
committed
fix the react-select styling
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
1 parent 85bf502 commit f635751

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ export class MonitorWidget extends ReactWidget {
208208
classNamePrefix='sms'
209209
className='serial-monitor-select'
210210
id={id}
211+
isSearchable={false}
211212
/>
212213
}
213214
}

arduino-ide-extension/src/browser/style/monitor.css

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,37 +85,39 @@
8585
background: var(--theia-layout-color2);
8686
}
8787

88-
.serial-monitor-select .sms__control--is-focused {
88+
.sms__control:hover {
8989
border-color: var(--theia-accent-color3) !important;
90-
box-shadow: none !important;
9190
}
9291

93-
.sms__control--is-focused:hover {
92+
.serial-monitor-select .sms__control--is-focused {
9493
border-color: var(--theia-accent-color3) !important;
94+
box-shadow: none !important;
9595
}
9696

9797
.serial-monitor-select .sms__option--is-selected {
98-
background-color: var(--theia-ui-button-color-secondary-hover);
98+
background-color: var(--theia-accent-color3);
9999
color: var(--theia-content-font-color0);
100100
border-color: var(--theia-accent-color3);
101101
}
102102

103103
.serial-monitor-select .sms__option--is-focused {
104-
background-color: var(--theia-ui-button-color-secondary-hover);
104+
background-color: var(--theia-accent-color4);
105105
border-color: var(--theia-accent-color3);
106106
}
107107

108108
.serial-monitor-select .sms__menu {
109109
background-color: var(--theia-layout-color1);
110110
border: 1px solid var(--theia-border-color2);
111+
border-color: var(--theia-accent-color3);
112+
top: auto !important; /* to align the top of the menu with the bottom of the control */
111113
border-top: none;
112114
box-shadow: none;
113115
}
114116

115117
.serial-monitor-select .sms__control.sms__control--menu-is-open {
116118
border: 1px solid;
117-
border-color: var(--theia-border-color2) !important;
118-
border-bottom: none;
119+
border-color: var(--theia-accent-color3) !important;
120+
border-bottom-color: var(--theia-layout-color2) !important; /* if the bottom border color has the same color as the background of the control, we make the border "invisible" */
119121
}
120122

121123
.serial-monitor-select .sms__value-container .sms__single-value {

0 commit comments

Comments
 (0)