-
Notifications
You must be signed in to change notification settings - Fork 471
Add support for menu description. #1771
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While the code is looking good, I'm not so sure about the implementation. Other themes seems to distinguish between the item and extra text, 2021 for example.
.
For storefront, it seems to ruin base line balance, and it's hard to distinguish between the description and the actual link (from link color, to text size and placement).
Can we run this by someone else first?
@senadir: Thanks for your initial review. @vivialice: Would you have the capacity to spin up a design for showing the menu descriptions when using the Storefront theme? In #1771 (comment), you can see how the menu descriptions are looking currently. |
Made so the items align like @senadir mentioned it is on 2021 (1.). Also updated styles to follow typographical scale used in the theme for secondary items like with cart counter (2.) Would be great to wrap this up but got a question - do you think adding |
@tomasztunik Thanks for following up on this issue. Looking at your screenshot, I wonder if the color contrast of the menu description is sufficient, given that WordPress aims to comply to the WCAG 2.0. |
…CAG 2.0 AA compliant contrast was ~2.5, target is 4.5+
@gigitux First of all, nice catch. I totally missed the submenu descriptions. I wonder if reverting is less effort, though, than spinning up an additional PR to cover the submenu as well. You know what, I'll quickly spin up another PR. You can then release Storefront either with both PRs, if mine gets reviewed fast enough. Or you revert this PR and the next porter releases these features next week. |
Note
WordPress 3.0 introduced Custom Menus which also allows adding a menu description. This PR aims to utilize this feature, so that Storefront users can show menu descriptions.
Fixes #1595
Screenshots
How to test the changes in this Pull Request:
/wp-admin/nav-menus.php
.Description
withinShow advanced menu properties
.Changelog