Skip to content

Commit

Permalink
Reverting #189955 to fix issue with selectors in certain themes and a…
Browse files Browse the repository at this point in the history
…dding specificity (#190077)

* bugfix on selected list item reverting and added important

* removed !important and added specificity
  • Loading branch information
justschen committed Aug 9, 2023
1 parent b9d174e commit 1094b5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/base/browser/ui/list/listWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ export class DefaultStyleController implements IStyleController {
}

if (styles.listFocusForeground) {
content.push(`.monaco-list${suffix}:focus .monaco-list-row.focused:not(.monaco-list-row.action.option-disabled) { color: ${styles.listFocusForeground}; }`);
content.push(`.monaco-list${suffix}:focus .monaco-list-row.focused { color: ${styles.listFocusForeground}; }`);
}

if (styles.listActiveSelectionBackground) {
Expand Down
2 changes: 2 additions & 0 deletions src/vs/platform/actionWidget/browser/actionWidget.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,12 @@
}

.action-widget .monaco-list-row.action.option-disabled,
.action-widget .monaco-list:focus .monaco-list-row.focused.action.option-disabled,
.action-widget .monaco-list-row.action.option-disabled .codicon {
color: var(--vscode-disabledForeground);
}


.action-widget .monaco-list-row.action:not(.option-disabled) .codicon {
color: inherit;
}
Expand Down

0 comments on commit 1094b5d

Please sign in to comment.