Hello, I’d like to change the current box shadow color that appears when selecting the cart and search tool. Currently it’s a red shadow. Is there a solution that allows for rgba value?
url -
p -
edit: removed url & pw
Hello, I’d like to change the current box shadow color that appears when selecting the cart and search tool. Currently it’s a red shadow. Is there a solution that allows for rgba value?
url -
p -
edit: removed url & pw
Hi, @vvyan
Sure. How do you want to modify it?
Hi, I’d like to change it into a transparent light gray. kind of like rgba (133, 133, 133, 0.3)
Hi @vvyan ,
So here is a solution in video . With this you can change the color to whatever you need .
Simply search for component-cart-drawer.css and base.css and as per video adjust the code to your liking .
Below is the sample code .
///// For Cart Drawer ///////
.drawer {
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100vw;
height: 100%;
display: flex;
justify-content: flex-end;
background-color: #0000007f;
transition: visibility var(--duration-default) ease;
}
//// for Search Drawer search for details[open] .modal-overlay in base.css and paste the code in details[open] .modal-overlay::after with this .
details[open] .modal-overlay::after {
position: absolute;
content: '';
background-color: rgb(0 0 0 / 50%);
top: 100%;
left: 0;
right: 0;
height: 100vh;
}
Hello @vvyan
Sure! You can change the box shadow color of elements using CSS. If you want to use an RGBA value for the shadow color, you can specify it like this:
.element {
box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}
To achieve the desired color, you can modify the RGBA values; to manage the shadow’s transparency, vary the alpha value. To alter the box shadow color of the cart and search tool elements, apply this CSS.
Thanks.
thank you, this ended up working great