Skip to content

Commit

Permalink
fix(ui5-tree-item): ensure correct cursor style (#9152)
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 authored and ilhan007 committed Jun 14, 2024
1 parent 1a1ca3b commit 5f9cfee
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([_selection-mode="None"]):not([_selection-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([_selection-mode]:not([_selection-mode="None"], [_selection-mode="Delete"], [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([_selection-mode="None"]):not([_selection-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([_selection-mode="None"]):not([_selection-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 5f9cfee

Please sign in to comment.