-
Notifications
You must be signed in to change notification settings - Fork 153
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
Main navigation dropdown #12038
Main navigation dropdown #12038
Conversation
e1148c8
to
e141850
Compare
1d76c60
to
271769c
Compare
4a4ba71
to
113a87b
Compare
Great progress on this @jhonatan-lopes! I know you mentioned some things missing but I included some in my review anyway and will leave QA feedback here: All
Desktop
Tablet
Tablet/Mobile
CMS Editing Experience
|
Hi @nancyt1 and @sabrinang, thanks for the feedback! Some points:
I've set up the backend/templates to use SVGs with a width/height of 18px (font size). Non-vector images will get blurry. There is a ticket to put validation in place so that editors only use SVGs on those image choosers but please let me know if you'd like to remove that restriction to also have raster images.
This will be handled in a subsequent ticket.
It's using the
It's using 1px, exactly as the design indicated. The difference might be that there's 1px from the dropdown's top border + 1px for the navbar's bottom border. I'll try to disable the dropdown's top border on hover and see if that helps.
I'll fix it 👍
Yes, I'll update those!
Will do
Yes, this is an issue with Wagtail itself and how it's rendering the form. I'll try to add some CSS overrides from our side...
You can keep multiple snippets under the "Navigation Menus" menu. To activate one of them, go to "Settings" > "Navigation Menu" and then select the one that you want to activate. Once you click save that menu will be active for the site defined in the setting.
Thanks for flagging that up!
Same thing I've flagged before, it's a Wagtail issue with the form but I'll try to put some overrides on our side.
Will do |
@jhonatan-lopes Is there a way we can add a super small delay on the menu so it doesn't open immediately on mouse over? I'm thinking about the instances where I'm moving my mouse to something past the menu and I don't really want it to flash open. The wirecutter site does kinda what i was thinking. I also don't want to lose the snappiness of going between menus tho. Menu.mov |
Hi @nancyt1, I'll add that to the "animations" ticket! |
Further feedback has been addressed on #12259 |
* Add `nav` app * Make only page, external and relative links available on base link block * Make label part of the base link block * Define a NavLinkBlock * Add NavLinkBlock factory * Add tests for block * Make `link_to` field required
* Add description to NavLinkBlock * Set max length
* Add description to NavLinkBlock * Rename NavLinkBlock to NavItem * Add NavButtonBlock * Fix test name * Add a NavColumn model
* Better NavColumn block with default values * Add NavOverview block * Setup rich text features on overview description * Define an ExtendedStructBlockFactory * Use ExtendedStructBlockFactory * Add NavDropdown block * Lint * Fix types
* Add `NavMenu` model * Add factory for `NavMenu` * Add initial migration for `NavMenu` * Add tests for `NavMenu` * Register nav on wagtail side bar * Update migration file
* Add NavFeaturedItem block * Add NavFeaturedColumn block * Add featured column to dropdown * Adjust factories to featured column * Adjust tests to new factories and add tests for featured column * Fix migration
* Better panels on NavMenu * Add SiteNavMenu setting * Show only default locale nav menus on settings * Fix donate banner test * Add title and locale to NavDropdownFactory * Remove print statements
* Add template tag to render SVG from static dir * Add arrow glyphs for nav * Nav item block template * Update template path on NavItem block * Lint * Add new colours * Remove `include_svg` template tag * Use font glyph instead of SVG * Only display arrow if link is external * Rename `open_in_new_window` prop to `is_external` * Rename item template * Add template docs * Rename item template * Use display:block on description
* Add blog dropdown functionality * Add factory for nav menu blog topic relationship model * Add tests for blog dropdown * Override routablepageurl so that it works on pattern library * Adjust templates to be extendable * Blog dropdown post template * Blog dropdown topic template * Blog dropdown button template * Blog dropdown featured posts column template * Blog dropdown featured topics column template * Blog dropdown template * Readme * Add preview template for nav menu * Add blog dropdown to menu template * Special validation on blog dropdown form * Update NavMenu factory for blog dropdown fields * Add tests to NavMenuForm
* SVG validation for NavFeaturedItem block + tests * validator is now in utils * featuredblogtopic svg validation + tests + moved validator to utility file * formatting, migrations, and tests for related topics and validation utility * linting
* Align link items with column headings * Get 600 version of Nunito Sans * Expand max-width of dropdowns * Move dropdown down 1px * Fix blue margins on mobile/tablet * Increase top padding on newsletter button * Only keep one dropdown open at a time * Add custom icons * Better help text on dropdown button * Reduce column margins * Lint * Set only image height * Try to set desktop spacing between nav items to 40px * Fix migration conflict
* Add utility to extract key values from nested dict * Move nav_tags to nav app * Add NavMenu props to extract/cache page references * Add custom template tags to check if dropdown and link are in wayfinding/active state * Mark dropdown as wayfinding/active state * Mark item as wayfinding/active state * Modify dropdown JS components to handle wayfinding states * Put test data in JSON file * Fix desktop dropdown * Lint * Put border on dropdown's title text instead of whole div * Lint * Make dropdown button required * Fix migration * Remove print statement * Set underline thickness to 2px * Make wayfinding sibling dropdown border gray
ec8775d
to
9128e57
Compare
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.
Your magnum opus, @jhonatan-lopes 🔥🔥🔥
* Address design feedback * Make sure that dropdown titles init without bottom border
➤ Kristina Shu commented: Simon Acosta Torres I can’t tell what this ticket is, is it for dev? Can it be closed? |
➤ Simon Acosta Torres commented: Kristina Shu This is a PR that as I can see, has already been merged to the code. I will proceed to close this synced ticket. |
Description
Merge Method
💡❗Remember to use regular merge for merging this feature branch into
main
┆Issue is synchronized with this Jira Task