File tree 3 files changed +4
-4
lines changed
src/Umbraco.Web.UI.Client/src/packages
core/tree/tree-item/tree-item-base
documents/documents/tree/tree-item
media/media/tree/tree-item
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export abstract class UmbTreeItemElementBase<
71
71
private _isSelectable = false ;
72
72
73
73
@state ( )
74
- private _isSelected = false ;
74
+ protected _isSelected = false ;
75
75
76
76
@state ( )
77
77
private _hasChildren = false ;
@@ -168,7 +168,7 @@ export abstract class UmbTreeItemElementBase<
168
168
const iconWithoutColor = icon ?. split ( ' ' ) [ 0 ] ;
169
169
170
170
if ( icon && iconWithoutColor ) {
171
- return html `< umb-icon slot ="icon " name ="${ this . _isActive ? iconWithoutColor : icon } "> </ umb-icon > ` ;
171
+ return html `< umb-icon slot ="icon " name ="${ this . _isActive || this . _isSelected ? iconWithoutColor : icon } "> </ umb-icon > ` ;
172
172
}
173
173
174
174
if ( isFolder ) {
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export class UmbDocumentTreeItemElement extends UmbTreeItemElementBase<
43
43
<span id= "icon-container" slot = "icon" class = ${ classMap ( { draft : this . _isDraft } ) } >
44
44
${ icon && iconWithoutColor
45
45
? html `
46
- <umb- icon id= "icon" slot = "icon" name = "${ this . _isActive ? iconWithoutColor : icon } " > </ umb- icon>
46
+ <umb- icon id= "icon" slot = "icon" name = "${ this . _isActive || this . _isSelected ? iconWithoutColor : icon } " > </ umb- icon>
47
47
${ this . #renderStateIcon( ) }
48
48
`
49
49
: nothing }
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export class UmbMediaTreeItemElement extends UmbTreeItemElementBase<UmbMediaTree
14
14
<span id= "icon-container" slot = "icon" >
15
15
${ icon && iconWithoutColor
16
16
? html `
17
- <umb- icon id= "icon" slot = "icon" name = "${ this . _isActive ? iconWithoutColor : icon } " > </ umb- icon>
17
+ <umb- icon id= "icon" slot = "icon" name = "${ this . _isActive || this . _isSelected ? iconWithoutColor : icon } " > </ umb- icon>
18
18
${ this . #renderStateIcon( ) }
19
19
`
20
20
: nothing }
You can’t perform that action at this time.
0 commit comments