thednp/bootstrap.native

Navbar with off-canvas drawer is hidden by backdrop

Closed this issue · 5 comments

If you have a navbar with an off-canvas drawer, the backdrop hides it. The official Bootstrap backdrop is appended to the navbar while Bootstrap.Native backdrop is appended to the document body.

Can you have a codepen link or something to see the diffrence?

The backdrop utility has the document body hardcoded in. Adding an option for a mounting point then defaulting to the document body if none is provided seems like an excellent addition.

What if you move the offcanvas outside of the navbar, it should work as expected. In other cases a fixed/static navbar to also hold an offcanvas which is also fixed bad.

I've developed the utility to drop the browser notification for slow render, but also with less hustle. The point I'm trying to make is that less configuration for more functionality is best, sounds good?

That's perfectly reasonable. Thanks!