List: bad color when focus moves out of selection and hovering (fixes #25634)

This commit is contained in:
Benjamin Pasero
2017-05-02 08:10:30 +02:00
parent 404798fe93
commit 3735a3609d

View File

@@ -819,6 +819,7 @@ export class List<T> implements ISpliceable<T>, IDisposable {
if (styles.listActiveSelectionBackground) {
content.push(`.monaco-list.${this.idPrefix}:focus .monaco-list-row.selected { background-color: ${styles.listActiveSelectionBackground}; }`);
content.push(`.monaco-list.${this.idPrefix}:focus .monaco-list-row.selected:hover { background-color: ${styles.listActiveSelectionBackground}; }`); // overwrite :hover style in this case!
}
if (styles.listActiveSelectionForeground) {