File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
src/pages/general/navigation Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,9 @@ const Navigation = (): React.ReactElement => {
6363
6464 < Navbar . Toggle aria-controls = 'basic-navbar-nav' />
6565 < Navbar . Collapse className = 'basic-navbar-links' >
66- < Styles . NavbarLinks variant = 'pills' toggle = { width < Constants . MOBILE_SIZE ? 1 : 0 } >
66+ < Styles . NavbarLinks variant = 'pills'
67+ toggle = { width < Constants . MOBILE_SIZE ? 1 : 0 }
68+ transparency = { scroll <= 10 && width > Constants . MOBILE_SIZE ? 1 : 0 } >
6769 < NavLink eventKey = '1' as = { Link } to = { Constants . PATHS . HOME } onClick = { scrollToTop } > Home</ NavLink >
6870 < NavLink eventKey = '2' as = { Link } to = { Constants . PATHS . EVENTS } onClick = { scrollToTop } > Events</ NavLink >
6971 < NavLink eventKey = '3' as = { Link } to = { Constants . PATHS . SPONSORS } onClick = { scrollToTop } > Sponsors</ NavLink >
Original file line number Diff line number Diff line change @@ -94,14 +94,14 @@ export default class NavigationStyles {
9494
9595 .dropdown-menu {
9696 position: absolute;
97- background-color: ${ COLORS . PRIMARY } !important;
97+ background-color: ${ props => props . transparency ? 'transparent' : `${ COLORS . PRIMARY } ` } !important; //fix background later
98+ transition: background-color 0.5s;
9899 padding: 0px 8px 8px 16px;
99100 border: none;
100101 }
101102
102103 .dropdown-item {
103104 color: ${ COLORS . TEXT } !important;
104- background-color: ${ props => props . toggle ? `${ COLORS . SELECTED } ` : 'transparent' } !important;
105105 font-size: 15px;
106106 border: none;
107107 padding: 0px
You can’t perform that action at this time.
0 commit comments