Making sub menus to appear as drop down menus at top #2198
-
Is it possible to have drop down menu something like this in mkdocs-material theme: By default, it seems material theme renders only top level menu below title with sub menus in left side bar. I am ok if left side bar is preserved. I just want to know if it is possible to have sub menus appear as drop down as shown in first image. For more clarity: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
No, Material for MkDocs does not and will never support dropdown menus due to their rather poor UX on touch devices and the inherent complexity due to how many different combinations of feature flags there would be for navigation. EDIT: updated, explanation: #2198 (reply in thread) |
Beta Was this translation helpful? Give feedback.
-
@squidfunk I'd also find this feature useful. Regarding your above comment about poor UX on touch devices, thanks for considering these things carefully—part of what makes this theme great. That said, would it be possible to construct this feature so that, when rendered on mobile devices, the (theoretical) drop-down menu items become nodes in the existing hierarchical mobile nav (behind the hamburger button)? With this approach, there'd be no additional usability concern—just a layer of added depth. At a glance, it looks like the language switcher takes a similar approach. Drop-down menus would be an extremely valuable way to break up a large / deep information architecture a bit further. |
Beta Was this translation helpful? Give feedback.
No, Material for MkDocs does not and will never support dropdown menus due to their rather poor UX on touch devices and the inherent complexity due to how many different combinations of feature flags there would be for navigation.
EDIT: updated, explanation: #2198 (reply in thread)