Skip to content

Commit

Permalink
enhancement_338_sidebar_menu_modal
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderMorugin committed May 3, 2024
1 parent 449db55 commit 6afab16
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/assets/images/sideBarMenu/IconArrowDown.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/entities/SideBarButton/ui/SideBarButton.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
}

.sideBarButton:hover {
color: var.$theme-secondary-color;
fill: var.$theme-secondary-color;
color: var.$header-color;
fill: var.$header-color;
}
5 changes: 3 additions & 2 deletions src/features/SideBar/ui/SideBar.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@
border-radius: 6px;
padding: 10px 10px 10px 15px;
cursor: pointer;
transition: 0.25s;
}

&__headerText {
color: var.$body-color;
transition: 0.25s;
}

&__headerArrow {
transition: transform 0.25s;
fill: var.$body-color;
transition: 0.25s;
}

&__headerArrow_active {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,19 @@
background: var.$body-bg;
min-height: 45px;
border-radius: 5px;
font-size: 15px;
color: var.$body-color;
fill: var.$body-color;
padding: 10px 15px;
cursor: pointer;

&__paragraph {
font-size: 15px;
color: var.$body-color;
}
transition: 0.25s;

&__arrow {
transform: rotate(270deg);
}
}

.sideBarLink:hover {
color: var.$header-color;
fill: var.$header-color;
}
3 changes: 1 addition & 2 deletions src/features/SideBarMenuModal/SideBarLink/SideBarLink.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { KeyboardEventHandler, FC } from 'react'

import ArrowIcon from '@/assets/images/sideBarMenu/IconArrowDown.svg'
import Paragraph from '@/shared/ui/Paragraph/Paragraph'

import styles from './SideBarLink.module.scss'

Expand All @@ -23,7 +22,7 @@ export interface ISideBarLink {
const SideBarLink: FC<ISideBarLink> = ({ isVisible, onKeyUp, onClick, title }) => {
return (
<div tabIndex={0} role="button" onKeyUp={onKeyUp} className={styles.sideBarLink} onClick={onClick}>
<Paragraph className={styles.sideBarLink__paragraph}>{title}</Paragraph>
{title}
{isVisible && <ArrowIcon className={styles.sideBarLink__arrow} />}
</div>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,11 @@
font-size: 15px;
color: var.$body-color;
padding: 10px 10px 10px 15px;
cursor: pointer;
transition: 0.25s;
}

&__route:hover {
color: var.$header-color;
}
}
7 changes: 7 additions & 0 deletions src/features/SideBarMenuModal/ui/SideBarMenuModal.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@
background: var.$white;
border-radius: 10px;
font-size: 15px;
font-weight: 700;
letter-spacing: 0.5px;
color: var.$body-color;
padding: 10px 20px;
transition: 0.25s;
}

&__button:hover {
color: var.$header-color;
}
}

0 comments on commit 6afab16

Please sign in to comment.