Adding backdrop-filter blur on navbar breaks offcanvas element #40576
Replies: 4 comments 1 reply
-
This does not seem to be a bug actually. Refer to this I believe that something like this should solve your problem: .customNavbar-mobile {
background-color: #282d43cc !important;
}
.customNavbar-mobile .offcanvas-backdrop {
backdrop-filter: blur(5px);
} |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply, but for some reason when you do that the transparency with the blur changes
Produces:
Produces: ^^ Your method partially works but the blur is ignored no matter the amount you apply to it. |
Beta Was this translation helpful? Give feedback.
-
So it looks like adding My final code that works:
|
Beta Was this translation helpful? Give feedback.
-
Working Codepen with changes https://codepen.io/Justin-Zimmerman/pen/jOoxOVw not sure if this is a bug ill let someone else decide if this should be closed. |
Beta Was this translation helpful? Give feedback.
-
Prerequisites
Describe the issue
Create a Navbar With offCanvas element & add custom class
<nav class="navbar fixed-top customNavbar-mobile">
Add css to custom class
.customNavbar-mobile { background-color: #282d43cc !important; backdrop-filter: blur(5px); }
Offcanvas breaks.
Reduced test cases
https://codepen.io/Justin-Zimmerman/pen/WNBzLBB
What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
Firefox
What version of Bootstrap are you using?
5.3.3
Beta Was this translation helpful? Give feedback.
All reactions