You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The design of the sub-menu should correspond to what is shown on the front-end (right now it's a dropdown on hover/focus). The editor is showing just an indented list:
This is a block that should have opinionated styles (assigned to theme.scss) that themes can opt into.
A few points on this. Right now there is some very opinionated styling as default, I am not sure if we reflect that but having a way to avoid this, for example, would be great:
Should the colors selected in the navigation color picker propagate to the submenu? Both from a design perspective but more importantly from a UX perspective: What would the user expect?
Otherwise it would look something like this (light style variation):
I think if the top level link color changes the submenu colors as well, you’re going to get clashes because the user does not have control over the background color of the submenus at this point.
It’s better to do light/dark and deal with colors when we can provide full control to users. Otherwise a situation where background color on the top level is light grey, the text color black, and they select the dark style means links in submenus are going to be unreadable.
Otherwise a situation where background color on the top level is light grey, the text color black, and they select the dark style means links in submenus are going to be unreadable.
Just to be clear about technical implementations. We can propagate the colors of text and background to the sub-items and completely ignore the light/dark styles here, as the primary menu (items in level 0) already does.
Should the colors selected in the navigation color picker propagate to the submenu? Both from a design perspective but more importantly from a UX perspective: What would the user expect?
As a user, I would expect the colors to propagate to the submenu. But, I'd probably also expect to be able to change the colors for the submenu independently. However, the current UI gets pretty overwhelming if we add two more color options:
But we could move the submenu color options to the toolbar when a top-level item with children is selected:
--
For now, I think we should just keep the colors tied to the top-level items and look at adding color options for submenus in another PR.
Reacted by Andy Peatling, Allan Cole and Tammie Lister
As a user, I would expect the colors to propagate to the submenu. But, I'd probably also expect to be able to change the colors for the submenu independently.
I think this is the ideal setup, and what we should be aiming for. The light/dark styles were a stop-gap until we could support color changing. By the sounds of it this is causing implementation confusion.
Here's a suggestion building from Shaun's above, please chime in with thoughts:
Remove the light/dark style variations
Propagate the color changes for background and text through to all submenus
Implement and merge the new submenu design with the above two items considered
Follow up immediately with support for submenu text and background color changing support
I like the plan apart from removing light / dark styles beyond a temporary removal. If we bring those back later I would be ok with it as we create the new style.
We haven't talked about how to apply the border-color for sub-menus. What we did, as an experiment, was applying the same color that the text if it's defined. If not, it will apply the Light/Dark color.
Another option is adding a new border color section in the color selector popover.
Ideas and suggestions are over welcome. Thanks, folks!
Could border color just balance off from the base of background? Looping @ItsJonQ in here as know this is something we are exploring in global styles where one style generates other options using CSS variables.
@retrofox personally I think for 'additional styling' the support isn't an issue and in #19611 along with other places this has been discussed. It's a case of having a decent baseline so it looks good across all browsers, then extras come if can support.
I do think if we don't go that route them filter or some method of rgba (even opacity) could work. I just think we have to be careful about at least for now not having so many color options it is a confusing interface. If I set a background I would want things to just work out, as a baseline.
Activity
karmatosed commentedon Nov 6, 2019
💯 for this. I also notice that for example on front it shows extra characters
getdave commentedon Nov 6, 2019
Can I clarify the intent here:
Are we saying we want the Editor and Theme (front of site) to utilise a common set of "opt in" styles for the Nav Block whichL
Questions:
retrofox commentedon Nov 6, 2019
is it defined by the list-style?
retrofox commentedon Nov 6, 2019
No, it is not.
Partial fix for #18310
karmatosed commentedon Nov 29, 2019
Noting the bit 'to do' on this is reflecting in the editor itself.
karmatosed commentedon Nov 29, 2019
A few points on this. Right now there is some very opinionated styling as default, I am not sure if we reflect that but having a way to avoid this, for example, would be great:
More in: #18830
I wonder could we have something like this:
I think directly having the arrow might be too much as in:
A suggested middle ground would be a white background:
26 remaining items
frontdevde commentedon Jan 16, 2020
@shaunandrews
Should the colors selected in the navigation color picker propagate to the submenu? Both from a design perspective but more importantly from a UX perspective: What would the user expect?
Otherwise it would look something like this (light style variation):

Or something like this (dark style variation):

apeatling commentedon Jan 16, 2020
I think if the top level link color changes the submenu colors as well, you’re going to get clashes because the user does not have control over the background color of the submenus at this point.
It’s better to do light/dark and deal with colors when we can provide full control to users. Otherwise a situation where background color on the top level is light grey, the text color black, and they select the dark style means links in submenus are going to be unreadable.
retrofox commentedon Jan 16, 2020
Just to be clear about technical implementations. We can propagate the colors of text and background to the sub-items and completely ignore the light/dark styles here, as the primary menu (items in level 0) already does.
apeatling commentedon Jan 16, 2020
Right, but I don't want to end up in a situation where the nav looks like this with no control over the submenu colors:
apeatling commentedon Jan 16, 2020
To be clear, although subjectively I don't think the above looks good, if there is control over the submenu colors I think this is a fine outcome.
shaunandrews commentedon Jan 16, 2020
As a user, I would expect the colors to propagate to the submenu. But, I'd probably also expect to be able to change the colors for the submenu independently. However, the current UI gets pretty overwhelming if we add two more color options:
But we could move the submenu color options to the toolbar when a top-level item with children is selected:
--
For now, I think we should just keep the colors tied to the top-level items and look at adding color options for submenus in another PR.
apeatling commentedon Jan 16, 2020
I think this is the ideal setup, and what we should be aiming for. The light/dark styles were a stop-gap until we could support color changing. By the sounds of it this is causing implementation confusion.
Here's a suggestion building from Shaun's above, please chime in with thoughts:
retrofox commentedon Jan 16, 2020
Sounds like a nice plan. Going to add these points in the PR #19681
karmatosed commentedon Jan 17, 2020
I like the plan apart from removing light / dark styles beyond a temporary removal. If we bring those back later I would be ok with it as we create the new style.
retrofox commentedon Jan 20, 2020
We haven't talked about how to apply the border-color for sub-menus. What we did, as an experiment, was applying the same color that the text if it's defined. If not, it will apply the Light/Dark color.
Another option is adding a new border color section in the color selector popover.
Ideas and suggestions are over welcome. Thanks, folks!
karmatosed commentedon Jan 21, 2020
Could border color just balance off from the base of background? Looping @ItsJonQ in here as know this is something we are exploring in global styles where one style generates other options using CSS variables.
retrofox commentedon Jan 21, 2020
Do you mean for instance applying a kind of filter or rgba()?
No IE11 support, then ;-)
An aside note related to this: Using CSS vars would make all these implementations soooooooooo easy
karmatosed commentedon Jan 21, 2020
@retrofox personally I think for 'additional styling' the support isn't an issue and in #19611 along with other places this has been discussed. It's a case of having a decent baseline so it looks good across all browsers, then extras come if can support.
I do think if we don't go that route them filter or some method of rgba (even opacity) could work. I just think we have to be careful about at least for now not having so many color options it is a confusing interface. If I set a background I would want things to just work out, as a baseline.