Offcanvas element : Open by default

Hi bricks team,

It would be great if you could add the “Open by default” option to the offcanvas element. This will be very useful in various scenarios.

Also, as another suggestion, it would be much better if you put the backdrop settings directly inside the offcanvas element. Just like a popup

2

cheers

2 Likes

I needed to do exactly the same thing, so I just want to record here for future reference: if you add the .brx-open class to the Offcanvas element, it will be open by default. Then, you can use JS to remove the class when the window is <960px, for example - or add the class if you’re going for a mobile-first approach, but in that case, the whole “open by default” doesn’t apply to you.