All things Shopify and commerce
As you can see, once the drawer menu is selected, only a certain section of the page gets covered with a transparent black background. Is there a way i can extend the menu and the black transparent background to the bottom of the screen? If that is not possible, is there a way i can disable scroll when someone clicks on the drawer menu, and the black transparent background covers the entire screen?
Hello @nishant0037
Please provide the URL and password of your website.
Hi,
Need Adjust CSS for the Overlay and update HTML structure (It will be great if you share your store URL)
CSS example
.drawer-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5); /* Black with 50% opacity */
z-index: 999; /* Ensure it’s above other content */
overflow: hidden; /* Prevent scroll */
}
.drawer-menu {
position: fixed;
top: 0;
right: 0;
width: 300px; /* Adjust width as needed */
height: 100%; /* Full height */
background: #fff; /* Background color of the drawer */
z-index: 1000; /* Ensure it’s above the overlay */
/* Add other styling as needed */
}
HTML Structure Example
<div class="drawer-overlay"></div>
<div class="drawer-menu">
<!-- Drawer menu content -->
</div>
We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024