Skip to content

Commit

Permalink
EPMRPP-90219 || wrong color of organisation name when hovering (#3788)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazarQSO authored Apr 2, 2024
1 parent f2b090a commit 0492e59
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 36 deletions.
72 changes: 38 additions & 34 deletions app/src/componentLibrary/sidebar/navbar/navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,40 +45,44 @@ export const Navbar = ({
<div className={cx('main-block')}>
{createMainControlBlock(onCloseNavbar, setIsOpenPopover)}
</div>
<div className={cx('top-block')}>
{topSidebarControlItems.map(({ sidebarBlockItem, key, onClick }) => (
<SidebarButton
key={key}
className={cx('navbar-btn', getClassName(key))}
onClick={() => {
onClick();
onCloseNavbar();
}}
onMouseEnter={() => setHoverType(key)}
onMouseLeave={clearActionButton}
onMouseDown={() => setActiveType(key)}
>
{sidebarBlockItem}
</SidebarButton>
))}
</div>
<div className={cx('bottom-block')}>
{bottomSidebarControlItems.map(({ bottomSidebarItem, key, onClick }) => (
<SidebarButton
key={key}
className={cx('navbar-btn', getClassName(key))}
onClick={() => {
onClick();
onCloseNavbar();
}}
onMouseEnter={() => setHoverType(key)}
onMouseLeave={clearActionButton}
onMouseDown={() => setActiveType(key)}
>
{bottomSidebarItem}
</SidebarButton>
))}
</div>
{topSidebarControlItems.length > 0 && (
<div className={cx('top-block')}>
{topSidebarControlItems.map(({ sidebarBlockItem, key, onClick }) => (
<SidebarButton
key={key}
className={cx('navbar-btn', getClassName(key))}
onClick={() => {
onClick();
onCloseNavbar();
}}
onMouseEnter={() => setHoverType(key)}
onMouseLeave={clearActionButton}
onMouseDown={() => setActiveType(key)}
>
{sidebarBlockItem}
</SidebarButton>
))}
</div>
)}
{bottomSidebarControlItems.length > 0 && (
<div className={cx('bottom-block')}>
{bottomSidebarControlItems.map(({ bottomSidebarItem, key, onClick }) => (
<SidebarButton
key={key}
className={cx('navbar-btn', getClassName(key))}
onClick={() => {
onClick();
onCloseNavbar();
}}
onMouseEnter={() => setHoverType(key)}
onMouseLeave={clearActionButton}
onMouseDown={() => setActiveType(key)}
>
{bottomSidebarItem}
</SidebarButton>
))}
</div>
)}
<div className={cx('bottom-block')}>
{createFooterControlBlock(onCloseNavbar, setIsOpenPopover)}
</div>
Expand Down
1 change: 1 addition & 0 deletions app/src/componentLibrary/sidebar/navbar/navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

.logo-wrapper {
height: 48px;
min-height: 48px;
display: flex;
align-items: center;
padding-left: 16px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@
width: 0;

&:focus-visible {
color: $COLOR--darkmode-gray-100;
color: $COLOR--white-two;
}

&:hover {
color: $COLOR--darkmode-topaz-text;
color: $COLOR--white-two;
background-color: $COLOR--darkmode-gray-500;
}
}
Expand Down

0 comments on commit 0492e59

Please sign in to comment.