Menu icon Foundation
data toggler - "display:block" inline

Hi,

 

Whenever I use a data-toggle - display:"block" is being applied inline to the element being toggled. As i'm trying to use motion-ui to slide my mobile menu into view this is causing an issue as the height of the menu container is being displayed as a block on the page and then the menu slides down into view. I'm using v6.3.

 

Does anybody have a solution to this please?

 

Thanks

James

 

question

Hi,

 

Whenever I use a data-toggle - display:"block" is being applied inline to the element being toggled. As i'm trying to use motion-ui to slide my mobile menu into view this is causing an issue as the height of the menu container is being displayed as a block on the page and then the menu slides down into view. I'm using v6.3.

 

Does anybody have a solution to this please?

 

Thanks

James

 

Rafi Benkual about 2 years ago

It would help to see the code you are working with. Can you share an example or codepen demo?