Skip to content

Commit 2edea71

Browse files
committed
style selected and disabled states
1 parent 27e556b commit 2edea71

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/packages/documents/documents/tree/tree-item/document-tree-item.element.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ export class UmbDocumentTreeItemElement extends UmbTreeItemElementBase<UmbDocume
134134
background: var(--uui-color-surface-emphasis);
135135
}
136136
137+
/** Active */
137138
[active] #icon-lock {
138139
background: var(--uui-color-current);
139140
}
@@ -142,6 +143,20 @@ export class UmbDocumentTreeItemElement extends UmbTreeItemElementBase<UmbDocume
142143
background: var(--uui-color-current-emphasis);
143144
}
144145
146+
/** Selected */
147+
[selected] #icon-lock {
148+
background-color: var(--uui-color-selected);
149+
}
150+
151+
[selected]:hover #icon-lock {
152+
background-color: var(--uui-color-selected-emphasis);
153+
}
154+
155+
/** Disabled */
156+
[disabled] #icon-lock {
157+
background-color: var(--uui-color-disabled);
158+
}
159+
145160
.draft {
146161
opacity: 0.6;
147162
}

0 commit comments

Comments
 (0)