Skip to content

Commit

Permalink
styling for job status nav when active and hover (#1303)
Browse files Browse the repository at this point in the history
  • Loading branch information
rstijerina authored Jun 18, 2024
1 parent 9931a42 commit 19a2788
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 10 deletions.
13 changes: 13 additions & 0 deletions client/modules/workspace/src/JobStatusNav/JobStatusNav.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,16 @@
.badge {
margin: 0 10px;
}

.root:hover,
.root:focus,
.highlighted-row,
.highlighted-row:hover,
.highlighted-row:focus {
background-color: #cbdded;
text-decoration: none;
}

.highlighted-row:hover {
cursor: unset;
}
25 changes: 16 additions & 9 deletions client/modules/workspace/src/JobStatusNav/JobStatusNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,21 @@ export const JobStatusNav: React.FC = () => {
borderRight: '1px solid var(--global-color-primary--normal)',
};
return (
<Header style={headerStyle}>
<Badge count={unreadNotifs} size="small" className={styles.badge}>
<Icon
className={`ds-icon-Job-Status ${styles.icon}`}
label="Job-Status"
/>
</Badge>
<NavLink to={`history`}>Job Status</NavLink>
</Header>
<NavLink
to={`history`}
className={({ isActive }) =>
isActive ? styles['highlighted-row'] : styles.root
}
>
<Header style={headerStyle}>
<Badge count={unreadNotifs} size="small" className={styles.badge}>
<Icon
className={`ds-icon-Job-Status ${styles.icon}`}
label="Job-Status"
/>
</Badge>
Job Status
</Header>
</NavLink>
);
};
2 changes: 1 addition & 1 deletion client/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
}

/* DO scroll app category menu */
.ant-layout-sider-children > header + div + ul {
.ant-layout-sider-children > a + div + ul {
overflow: auto;
height: 100%;
}

0 comments on commit 19a2788

Please sign in to comment.