-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Adding backdrop-filter blur on navbar breaks offcanvas element #40575
Comments
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);
} |
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. |
So it looks like adding My final code that works:
|
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. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
The text was updated successfully, but these errors were encountered: