Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace megamenu background image by simple gradient #823

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions blocks/header/header-megamenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ function buildMegaMenu(block, content) {
),
);

const backgroundImg = content.querySelector('.submenu-background img');
submenu.style.backgroundImage = `url(${backgroundImg.src})`;

// Get the list item in the header block that contains a div with attribute menu-id
// that matches the menuId
const item = block.querySelector(`div[menu-id="${menuId}"]`).closest('li');
Expand Down
15 changes: 13 additions & 2 deletions blocks/header/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,18 @@ header .nav-tabs .menu-nav-submenu {
opacity: 1;
visibility: visible;
position: absolute;
background: var(--background-color) url('/images/header-background-filler.jpg') no-repeat right bottom;
background: linear-gradient(90deg, rgb(64, 172, 100) 0, rgba(70 146 140) 50%, rgb(17, 149, 185) 100%) !important;
}

header .nav-tabs .menu-nav-submenu::after {
background-image: url("/images/wave-background-bottom.webp"), url("/images/wave-background-bottom.png");
background-size: 100% 100%;
height: 82px;
width: 100%;
position: absolute;
padding: 0;
bottom: 0;
content: "";
}

header .cards-submenu > div {
Expand Down Expand Up @@ -1726,7 +1737,7 @@ header .actionable-card-submenu.customercare-portal > div:nth-child(2) > div:nth
}

header .nav-tabs .menu-nav-submenu {
min-height: 782px;
min-height: 750px;
padding-bottom: 9.4%;
box-shadow: inset 0 19px 33px -28px #333F;
background-repeat: no-repeat;
Expand Down