-
Notifications
You must be signed in to change notification settings - Fork 546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes to horizontal menu logic. Now supports two levels of menu items. #1074
Conversation
…items. Added FontIcon component to reduce duplicate code.
…ems. Added FontIcon component to reduce duplicate code.
@Jayson-Furr could please show us screenshot for how the menus are look like |
I think there is room for improvement on the horizontal menu style. I think a top level page that is navigation with children should be an empty page with the redirect setup for the first child in it's page management for the flow to work well. Otherwise the top level is a link and menu activator which can cause the page / link to behave strange. Some clicks cause the menu to expand while others cause a navigation. If that makes sense. If we remove the link from the parent and just use the top level page as a page container then that would probably suffice. |
What do you think about adding a menu system separate from the pages system? Maybe multiple menus and a page could be added to a menu? On the page management, have toggles for each menu vs IsNavigation? Then the menu's could be added to the PageState similar to the Pages property? This would allow a setup of multiple menus for a site, example Navigation, Footer, Administration, etc. |
Yet another option, each page could have an optional menu control type that renders it and/or it’s children. This would allow the theme to have menu types, examples no sub menu, hover menu, drop down menu, mega style menu, etc. |
I think the page already have a property called |
This is a very good improvement to the menus and it also fixes the bugs identified previously. A few additional comments:
|
@sbwalker I have modified the horizontal menu logic to include two levels of menu items. It now renders the item correctly. I'll start on the vertical now and PR it next.