Skip to content

Commit

Permalink
fix: menu dropdown shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
shawn320 committed Nov 25, 2022
1 parent 229bcee commit 49eac51
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/Menu/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export function Menu(props) {
{showDropdown && (
<div
id="dropdownNavbar"
className="sm:ds-absolute sm:ds-w-[260px] ds-dropdown-list ds-text-[#284162] ds-bg-white"
className="sm:ds-absolute sm:ds-w-[260px] dropdownShadow ds-text-[#284162] ds-bg-white"
aria-labelledby="dropdownLargeButton"
ref={dropdown}
>
Expand Down
5 changes: 0 additions & 5 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
background-image: url("../assets/bg-banner-v2.png");
}

.ds-dropdown-list {
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
border-radius: 0px 0px 5px 5px;
}

/* Uses mobile background on smaller screens*/
@media (max-width: 449px) {
.bannerBg {
Expand Down
5 changes: 5 additions & 0 deletions src/styles/menu.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ nav {
display: block;
}

.dropdownShadow {
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
border-radius: 0px 0px 5px 5px;
}

@screen sm {
#menuButton,
#closeMenu {
Expand Down

0 comments on commit 49eac51

Please sign in to comment.