Skip to content

Commit 5f99fa3

Browse files
feat: color variable for icons (#167)
* feat: color variable for icons * fix: don't use variable
1 parent 90062d0 commit 5f99fa3

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

src/cosmoz-treenode-navigator.styles.ts

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ export default css`
3030
width: 40px;
3131
height: 40px;
3232
box-sizing: border-box;
33+
color: var(--cosmoz-treenode-navigator-icon-color, currentColor);
34+
}
35+
36+
.icon svg {
37+
fill: currentColor;
3338
}
3439
3540
.path {
@@ -80,20 +85,6 @@ export default css`
8085
flex: auto;
8186
}
8287
83-
.icon {
84-
box-sizing: border-box;
85-
cursor: pointer;
86-
display: inline-block;
87-
height: 40px;
88-
line-height: 1;
89-
outline: none;
90-
padding: 8px;
91-
position: relative;
92-
user-select: none;
93-
width: 40px;
94-
z-index: 0;
95-
}
96-
9788
.node.selected {
9889
background-color: var(
9990
--cosmoz-listbox-active-color,

0 commit comments

Comments
 (0)