I had not seen this, it seems you thought about everything
That said…
It seems to work fine when I don’t hide the nav block in mobile view.
But if I use display: none to hide my desktop menu on mobile (either on nav block or its container), the modal doesn’t appear when clicking the trigger (which seems logical, because of the display: none).
So… how do I hide the nav block while still having the modal visible?
I tried with height: 0 and visible: hidden on the container, and modal appears, but as I have some gap on the section container wrapping my header bars, I still have a remaining space.
Maybe I’m missing something here, is there quick and clean way to do this?
I’ve solved my gap issue by using a block wrapper and playing with margin/height/visibility to hide the nav items on mobile and use an alternate trigger for the modal.
The issue now is that when using an alternate trigger, modal doesn’t appear in the editor, so it is impossible to style. Could the trigger work backend as well?