Bootstrap v5 backdrop over offcanvas
KenHaggerty opened this issue · 11 comments
The bootstrap-native.js v4.0.4 does not implement the offcanvas-backdrop class. The offcanvas-backdrop class has z-index = 1040. The offcanvas class has z-index = 1045. The BSN Offcanvas component is using the modal-backdrop class which has z-index = 1050.
Yes, it's a way we found to optimize things. What's the problem?
Hm might be a change in the CSS of the latest original stable Bootstrap CSS.
Will investigate and provide a fix asap.
Is there a possibility this is caused by some markup error? Do you have a link to a demo we can have a look?
The current latest Bootstrap is still 5.0.2 and cannot find a way to replicate that issue.
I am using Bootstrap v5.1.0. Bootstrap Versions
Thanks for reporting, update incoming.
For some reason I cannot login to Github via TortoiseSVN and cannot commit.
@KenHaggerty please latest master. Thanks
Latest master works for me on Bootstrap v5.1.0 but the offcanvas-backdrop class does not exist in Bootstrap v5.0.2. In v5.0.2 the overlay dismisses but is not shaded.
We can't make it work with all 5.x versions, we either make it work with latest 5.1 or not. I think it's pretty bad from Bootstrap devs to come up with these changes 5 iterations after 5.x.
I bet these changes support Offcanvas in navbars and under modals. I am in the process of updating my sites to Bootstrap v5.1. You can close the issue.