Menu icon Foundation
Disable scroll when (off-canvas) content is pushed over - v6.3

When the new off-canvas (v6.3) menu is pushed over the content is still scrolling. How would you disable this? I think this is very distracting from a UI perspective as it takes away the focus of the opened side bar.

Foundation 6.3off-canvas

When the new off-canvas (v6.3) menu is pushed over the content is still scrolling. How would you disable this? I think this is very distracting from a UI perspective as it takes away the focus of the opened side bar.

Brett Mason almost 3 years ago

You just need to add data-content-scroll="false" to your off canvas and that will lock scrolling of the content.

Hope that helps!

jinch almost 3 years ago

Hi Brett, follow up on this... I just noticed when I apply (data-content-scroll="false") to the Off-Canavas menu... My side menus no longer scroll on mobile devices.

Is this a bug and is there a work around?

Thanks
>j