Skip to content

Commit bb5d65f

Browse files
fix(ui5-li-tree): fixed incorrect background of selected item (#3072)
The background of the selected items on level 2 and higher was wrong. Now it's aligned with specification. Fixes: #2978
1 parent 8786c9d commit bb5d65f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/main/src/themes/TreeListItem.css

+1-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
padding-left: 0;
4242
}
4343

44-
:host([selected][has-border]:not([level="1"])),
4544
:host(:not([level="1"])) {
4645
border-bottom: none;
4746
}
@@ -55,7 +54,7 @@
5554
cursor: pointer;
5655
}
5756

58-
:host(:not([level="1"])) .ui5-li-root-tree {
57+
:host(:not([level="1"]):not([selected])) .ui5-li-root-tree {
5958
background: var(--sapList_AlternatingBackground);
6059
}
6160

0 commit comments

Comments
 (0)