Skip to content
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

Navigation Menu: Optionally use arrow for dropdowns. #18396

Closed
mtias opened this issue Nov 8, 2019 · 10 comments · Fixed by #19601
Closed

Navigation Menu: Optionally use arrow for dropdowns. #18396

mtias opened this issue Nov 8, 2019 · 10 comments · Fixed by #19601
Assignees
Labels
[Block] Navigation Affects the Navigation Block [Type] Enhancement A suggestion for improvement.

Comments

@mtias
Copy link
Member

mtias commented Nov 8, 2019

It'd be nice to allow users to choose whether they want to show an arrow next to navigation items that have a dropdown. Probably off by default.

image

@mtias mtias added [Type] Enhancement A suggestion for improvement. [Block] Navigation Affects the Navigation Block labels Nov 8, 2019
@retrofox retrofox added the Needs Design Needs design efforts. label Nov 12, 2019
@draganescu
Copy link
Contributor

Should this arrow be customisable by a theme?

@karmatosed karmatosed self-assigned this Dec 2, 2019
@karmatosed
Copy link
Member

karmatosed commented Dec 9, 2019

Potentially I can see this as a setting shows on the parent to sub nav link, for example:

subnavstyles

I am torn though because this also could fit under a style variation.

@karmatosed karmatosed added Needs Design Feedback Needs general design feedback. and removed Needs Design Needs design efforts. labels Dec 9, 2019
@mtias
Copy link
Member Author

mtias commented Dec 10, 2019

A setting makes more sense to me because a style variation would end up as a complicated matrix: light / with arrow; light / with no arrow; dark / with arrow; dark / with no arrow.

@karmatosed
Copy link
Member

@mtias sounds reasonable, it could get murky and that was part of reason I was torn. I think maybe then this at least opens it up for other subnav settings or for plugin hooks.

@karmatosed karmatosed removed the Needs Design Feedback Needs general design feedback. label Dec 10, 2019
@WunderBart WunderBart assigned WunderBart and unassigned karmatosed Jan 13, 2020
@WunderBart
Copy link
Member

WunderBart commented Jan 13, 2020

@mtias @karmatosed I'd suggest a bit different placement and naming of the setting, something like this:

How does that look?

Edit:

Should this actually be a per-item or rather a per-navigation setting? I'd suggest the latter as it feels more natural to me - either I want to show chevrons for submenus or not. What do you think?

@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Jan 13, 2020
@mtias
Copy link
Member Author

mtias commented Jan 13, 2020

Yes, correct. It should be a setting of the navigation block, not the navigation link.

@ZebulanStanphill
Copy link
Member

ZebulanStanphill commented Jan 14, 2020

Seeing as that the chevron is a mere stylistic thing, I agree with @mtias that it should be a style variation (or just left to the theme entirely) rather than a dedicated block option.

I misunderstood his post, nevermind.

@WunderBart WunderBart removed the [Status] In Progress Tracking issues with work in progress label Jan 16, 2020
@ZebulanStanphill
Copy link
Member

#19601 has been merged, but I'm still not convinced that adding a whole new inspector setting and addition HTML markup was necessary. Are we sure that this could not have been accomplished with CSS ::after pseudo-element styles and the block styles API?

@retrofox
Copy link
Contributor

retrofox commented Jan 21, 2020

HI @ZebulanStanphill, thanks for your feedback.

I'm still not convinced that adding a whole new inspector setting ...

It has been discussed, for instance...

> A setting makes more sense to me because a style variation would end up as a complicated matrix: light / with arrow; light / with no arrow; dark / with arrow; dark / with no arrow.

and addition HTML markup was necessary

if you mean to adding an SVG icon, it's similar to the previous one. It was discussed in the PR, too.

However, we are going to keep working on the new design for sub-menus, and it's closely related to this implementation. Here there is the (draft now) PR #19681

@retrofox
Copy link
Contributor

Sorry, maybe I wasn't clear enough about my previous comment. Just in case, what I attempted to say is feedback is more than welcome, @ZebulanStanphill, in #19681 in order to keep polishing the implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Navigation Affects the Navigation Block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants