Skip to content

Commit 15237e8

Browse files
committed
Improves dropdown selection/hover styles
1 parent c54fa4b commit 15237e8

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/webviews/apps/plus/graph/styles/header.css.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,18 +191,24 @@ export const graphHeaderControlStyles = css`
191191
padding: 0.2rem 0.4rem;
192192
}
193193
194-
sl-option[aria-selected='true']::part(base),
195-
sl-option:not([aria-selected='true']):hover::part(base),
196-
sl-option:not([aria-selected='true']):focus::part(base) {
194+
sl-option:focus::part(base) {
197195
background-color: var(--vscode-list-activeSelectionBackground);
198196
color: var(--vscode-list-activeSelectionForeground);
199197
}
200198
199+
sl-option:not(:focus):hover::part(base) {
200+
background-color: var(--vscode-list-inactiveSelectionBackground);
201+
color: var(--vscode-list-activeSelectionForeground);
202+
}
203+
201204
sl-option::part(checked-icon) {
202205
display: none;
203206
}
204207
205208
sl-select::part(listbox) {
209+
display: flex;
210+
flex-direction: column;
211+
gap: 0.1rem;
206212
padding-block: 0.2rem 0;
207213
width: max-content;
208214
}

0 commit comments

Comments
 (0)