Skip to content

Commit

Permalink
TASK: Render hover color for node items
Browse files Browse the repository at this point in the history
  • Loading branch information
markusguenther committed Oct 4, 2024
1 parent 5f97f07 commit d7c2748
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Resources/Private/FlatNav/src/FlatNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default class FlatNav extends Component {
if (isHidden) {
return (
<span className="fa-layers fa-fw">
<Icon icon={nodeTypeIcon} />
<Icon icon={nodeTypeIcon} className={style.baseIcon} />
<Icon icon="circle" color="error" transform="shrink-3 down-6 right-4" />
<Icon icon="times" transform="shrink-7 down-6 right-4" />
</span>
Expand All @@ -127,15 +127,15 @@ export default class FlatNav extends Component {
if (isHiddenBefore || isHiddenAfter) {
return (
<span className="fa-layers fa-fw">
<Icon icon={nodeTypeIcon} />
<Icon icon={nodeTypeIcon} className={style.baseIcon} />
<Icon icon="circle" color="primaryBlue" transform="shrink-5 down-6 right-4" />
<Icon icon="clock" transform="shrink-9 down-6 right-4" />
</span>
);
}

return (
<Icon icon={nodeTypeIcon} />
<Icon icon={nodeTypeIcon} className={style.baseIcon} />
);
}

Expand Down
16 changes: 14 additions & 2 deletions Resources/Private/FlatNav/src/style.modules.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

.panel {
height: 100%;
overflow-y: hidden;
}

.toolbar {
Expand Down Expand Up @@ -53,18 +54,29 @@
border-bottom: 1px solid var(--colors-ContrastDark);
}

.treeWrapper {
flex-grow: 1;
padding: 5px 0;
}

.pageTreeToolbarOriginal :is(div) {
border-top: 0;
}

.node {
display: flex;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
width: 100%;
padding: 3px 6px;
cursor: pointer;

&:hover {
.nodeIconWrapper,
.nodeIconWrapper svg.baseIcon,
.nodeLabel {
color: var(--colors-PrimaryBlueHover);
}
}
}

.nodeIconWrapper {
Expand Down

0 comments on commit d7c2748

Please sign in to comment.