Menu Application - UI improvements

Hello everyone!

I’d like to initiate a brainstorming session on the horizontal menu’s look and feel, as I’ve noticed some visual inconsistencies compared to other page elements.
Based on these observations, I’d also like to propose a few layout adjustments to enhance its overall appearance and improve the user experience.

1) Inconsistency of arrows, compared to hierarchy. On hierarchy, the arrow points down as there is the expanding area, while the menu arrow points to the left to indicate the menu item to be expanded.
I would like to propose to update the menu to have the same behavior as the hierarchy:
On top menu items display down arrows (as the section to expand is down) and on submenu items to display right arrows (as the section to expand is at the right).

2) Inconsistency on expanded section’s border. There’s a visual inconsistency in the border styling of the expanded section.
The general design rule across the page is to use rounded corners for expanded elements.
In the image below, the hierarchy border is highlighted, and similar components, such as the content menu (Edit, More actions), also follow this rounded corner convention.
I would like to propose to round all the corners of the expanded sections’ border.

This is how it looks with all corners rounded:

3) Display the item name on a single line. With the current implementation, the menu width is limited to 12em and it could easily become too small for longer name of the menu item. Here it how it looks for “Occupational Safety and Occupational Medicine“:


And this is how it could look after change:


I would like to propose to better use the available space and display full name on a single line.
I’m eager to see what others think.

Thank you,
Alex

Hello!

The arrow should point down when the submenu is opened through regular means.

We have a similar pattern for the administration menu accordeon and the navigation panel.

IMO this inconsistency should be solved the other way around, the breadcrumb is pretty much the only place where we have down pointing carets in the default state.
Note that at the end of Improvements to the default skin and Iceberg color theme - #7 by tkrieck @tkrieck proposed an updated design.

-1 from me to change the menu arrow directions.
+1 for the hovered direction of the submenu arrow. Currently they point down but it would make more sense for them to point to what was revealed on the right :slight_smile:

+1, this inconsistency is my fault and I don’t remember it so it was probably just a style I forgot or some custom existing style that I tried to keep as is.

-1. It could be a usability regression for some menus that rely on this linewrapping.

Imagine instances with a 4-depth menu, it would be longer/harder to navigate if every level had a random width and possibly go over the edge of the screen.

We can consider increasing this 12em size (or even making it easily customizable), but I’m against trying to fit everything on one line. What would be the limit? Where do you cut the line when this limit is reached? How do you make sure submenus don’t go off screen?


For reference, there was a layout issue pretty close to this discussion: Loading...

Note that it’s completely okay to have on your own instance, but I don’t believe it’d be good for all users to get it through XWiki Standard :slight_smile:


Thank you for starting the discussion here!
Lucas C.

I guess we have 2 possible situations that could have the same attention:

  1. menu with multiple levels (4, 5 …) that could make the submenu items to leave the screen
  2. menu with long names on the same level (4, 5 …) that could take easily 3-4 rows (each item) and we can end up with all the page’s height filled with menu

In both cases, I think the user that configures the menu should do proper adjustments to make sure the menu looks nice.
However, reading a sentence on multiple lines isn’t that desirable, isn’t it?

+1 on my side.

While it does make sense on accordions or tree views, on a top navigation menu the behaviour is indeed strange.

The example below is from google images and I think it pictures the intended behaviour better to the user, e.g. "what will happen when I click this

+1, seems like a bug

-1, this can induce some very strange layouts when only one page is much longer than others.

What I propose instead is to change the paddings and line heights of the menu items so they stand out better from its siblings while maintaining readability.

Thanks for taking your time to discuss this!

@CharpentierLucas While the proposal you mentioned does remove the arrows (which could also be a topic for discussion regarding the top menu entries), it doesn’t aim to replicate the same arrow style used in the Administration section.
I also agree with @tkrieck that there’s a meaningful distinction between accordions and tree views, and I still find the current menu arrows visually unappealing.
Would you be open to reconsidering your -1 on this?

Thank you for the explanations! I’m definitely biased so my opinion on this design choice is probably not the most accurate. I helped implement some of the current menu but I barely use this feature myself :woozy_face:
-0 from me. My preference goes towards keeping things as they are but it’s definitely not a good reason enough to stop this change.

  • arrow direction consistency through elements, IMO it’s a very minor improvement
  • all changes always come with at least small cost of usability for current users

Understandably I can’t edit my initial message after people answered it.
I’m now -0 on the question.

Note that I’m not a committer and this is a not a vote, my messages contain only my opinions and XWiki can change even if I don’t completely agree with the changes personally :wink:


Thank you for pushing for these improvements!
Lucas C.