Skip to content

Commit

Permalink
fix(ui5-tree-item): ensure correct cursor style (#9151)
Browse files Browse the repository at this point in the history
Added CSS rule to set cursor to default when `_mode` attribute is not present

Fixes: #9146
  • Loading branch information
kgogov committed Jun 13, 2024
1 parent 1cc31c3 commit 7984b1d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/main/src/themes/TreeItem.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
border-bottom: var(--ui5-listitem-selected-border-bottom);
}

:host([_toggle-button-end]:not([selected])) .ui5-li-root-tree:hover,
:host(:not([_mode="None"]):not([_mode="Delete"]):not([active]):not([selected])) .ui5-li-root-tree:hover {
background: var(--sapList_Hover_Background);
:host([_toggle-button-end]) .ui5-li-root-tree:hover,
:host([_mode]:not([_mode="None"]):not([_mode="Delete"]):not([active])) .ui5-li-root-tree:hover {
cursor: pointer;
}

:host([_toggle-button-end]) .ui5-li-root-tree:hover {
cursor: pointer;
:host([_toggle-button-end]:not([selected])) .ui5-li-root-tree:hover,
:host(:not([_mode="None"]):not([_mode="Delete"]):not([active]):not([selected])) .ui5-li-root-tree:hover {
background: var(--sapList_Hover_Background);
}

:host(:not([level="1"]):not([active]):not([selected])) .ui5-li-root-tree {
Expand All @@ -44,7 +44,6 @@

:host(:not([_mode="None"]):not([_mode="Delete"]):not([active])[selected]) .ui5-li-root-tree:hover {
background-color: var(--sapList_Hover_SelectionBackground);
cursor: pointer;
}

.ui5-li-tree-toggle-box {
Expand Down

0 comments on commit 7984b1d

Please sign in to comment.