Skip to content

Commit

Permalink
no icon for tree leaf
Browse files Browse the repository at this point in the history
  • Loading branch information
FredericHeem committed Dec 15, 2023
1 parent 6751716 commit 6787091
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions bau-ui/globalStyle/globalStyle.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const ColorPaletteDefault = [
["neutral", { h: "0", s: "0%", l: "50%" }],
["neutral", { h: "0", s: "0%", l: "10%" }],
["primary", { h: "230", s: "70%", l: "30%" }],
["secondary", { h: "338", s: "70%", l: "50%" }],
["success", { h: "120", s: "70%", l: "25%" }],
Expand Down Expand Up @@ -27,7 +27,7 @@ const variantToCss = () =>
([color]) =>
`
.outline.${color} {
border: 1px solid ${darkVar(color)};
border: 1px solid var(--color-emphasis-600);
color: var(--font-color-base)
}
.soft.${color} {
Expand Down
12 changes: 7 additions & 5 deletions bau-ui/treeView/treeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,13 @@ export default function (context, options = {}) {
children.map(Tree({ depth: depth + 1, maxDepth, parent: item }))
);
return li(
Collapsible({
expanded,
Header,
Content: children && depth < maxDepth && Content,
})
children.length
? Collapsible({
expanded,
Header,
Content: children && depth < maxDepth && Content,
})
: Header()
);
};

Expand Down

0 comments on commit 6787091

Please sign in to comment.