Skip to content

Commit 182ab64

Browse files
committed
Apply the new dropdown styles
1 parent 59c82f5 commit 182ab64

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
1010

1111
- **Table**: The column resizing algorithm has been rewritten. Columns can now push each other.
1212
- **Button**, **SingleSelect**, **MultiSelect**, **Textfield**, **Textarea**: Use 4px border radius.
13+
- **SingleSelect**, **MultiSelect**: Updated dropdown styles to align with the VSCode UI.
1314

1415
## [2.4.0] - 2025-12-26
1516

src/includes/vscode-select/styles.ts

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,16 @@ export default [
8787
:host(:focus) .combobox-face,
8888
:host([focused]) .select-face,
8989
:host([focused]) .combobox-face {
90-
border-color: var(--vscode-focusBorder, #0078d4);
9190
outline: none;
9291
}
9392
93+
:host(:focus:not([open])) .select-face,
94+
:host(:focus:not([open])) .combobox-face,
95+
:host([focused]:not([open])) .select-face,
96+
:host([focused]:not([open])) .combobox-face {
97+
border-color: var(--vscode-focusBorder, #0078d4);
98+
}
99+
94100
.combobox-input {
95101
background-color: transparent;
96102
box-sizing: border-box;
@@ -166,12 +172,10 @@ export default [
166172
border-style: solid;
167173
border-width: 1px;
168174
bottom: unset;
175+
box-shadow: 0 2px 8px var(--vscode-widget-shadow, rgba(0, 0, 0, 0.36));
169176
box-sizing: border-box;
170177
display: none;
171-
padding-bottom: 2px;
172-
padding-left: 0;
173-
padding-right: 0;
174-
padding-top: 0;
178+
padding: 0;
175179
right: unset;
176180
}
177181
@@ -186,15 +190,10 @@ export default [
186190
top: unset;
187191
}
188192
189-
:host(:focus) .dropdown,
190-
:host([focused]) .dropdown {
191-
border-color: var(--vscode-focusBorder, #0078d4);
192-
}
193-
194193
.scrollable {
195194
display: block;
196195
max-height: 222px;
197-
margin: 1px;
196+
margin: 0;
198197
outline: none;
199198
overflow: hidden;
200199
}

0 commit comments

Comments
 (0)