Mdb-ui-kit: Multilevel dropdown menu

Created on 7 Jul 2015  路  12Comments  路  Source: mdbootstrap/mdb-ui-kit

We are looking at implementing Material design for our site. We already use bootstrap so this has worked well so far and was easy to get going.

However, we have a need for multilevel dropdown menus. We have been using a plugin (See link below) and I was kinda hoping it would just keep working, but is doesn't.

Link: http://vsn4ik.github.io/bootstrap-submenu/

Don't mind ditching the plugin, but is there another way I can do this with Bootstrap-Material??

Regards
Nick

Most helpful comment

Try, open file bootstrap-material-design.css, find .dropdown-menu li, remove overflow: hidden;, enjoy :D

All 12 comments

Bootstrap material doesn't really change the dropdowns....It should still work with the standard bootstrap code, but not with dropdown.js

Moved on to something else for a few hours, but just spent some time working through any and all css being applied and found there is an overflow:hidden from the Material css being applied that is making the submenu not showing. For now I'm just overriding it with css and will handle it better later, but at first it looked broken and my first thought was to find out if Bootstrap-material doesn't already have a way to do it.

It actually works perfectly and could potentially be a nice add on for this... maybe?

On second thought, it only works with default bootstrap dropdown... so maybe not a good ad on. I now have to find a way to use this plugin with default bootstrap while getting the dropdowns styled properly.

it seems not working with bootstrap material.

Sorry, it works:)

If you would like to request something, please reopen and submit a CodePen test case.

hello Team,

Ive been trying to use the below bootply code to integrate it with material, but the multilevel menu fails, if i remove the material.min.css file, then it works like a charm.
http://www.bootply.com/6FC76YQ4Nh

can you kindly guide me thru the same please

Try, open file bootstrap-material-design.css, find .dropdown-menu li, remove overflow: hidden;, enjoy :D

@nhkphp
overflow: hidden is missing in bootstrap-material-design.min.css.
how to change it in minified version?(except chenging main file and then minifying it).

never edit compiled files, always edit the source codes (overriding them possibly) and compile them again.

We are not in 2000's anymore.

Thanks @FezVrasta for your kind guidance.
My problem has been solved by adding css

<style> .dropdown-menu li { overflow: visible; }</style>

Is it good practice?

it's much better than editing the compiled file

Was this page helpful?
0 / 5 - 0 ratings

Related issues

snessnes picture snessnes  路  7Comments

runningrandall picture runningrandall  路  6Comments

nekkon picture nekkon  路  4Comments

rh78 picture rh78  路  8Comments

MasDevProject picture MasDevProject  路  4Comments