-
Notifications
You must be signed in to change notification settings - Fork 616
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
feature(bctheme): BCTHEME-50 ability to load subcategories and expand them if there are other categories beneath it #1715
feature(bctheme): BCTHEME-50 ability to load subcategories and expand them if there are other categories beneath it #1715
Conversation
…them if there are other categories beneath it (not affecting alternate menu)
…hem if there are other categories beneath it (styles code optimization)
Autotagging @bigcommerce/storefront-team @davidchin |
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.
Everything is ok, but I suggest to move arrow on the right side of menu, @bc-as what do you think?
it will not be a problem |
@BC-tymurbiedukhin moved arrow to the right. made some code updates for it |
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.
LGTM 👍
… them if there are other categories beneath it - mob version ux update
… them if there are other categories beneath it - affecting fixes
… them if there are other categories beneath it (dafault menu mob/desktop fixes)
… them if there are other categories beneath it (alternate menu affects fix)
@BC-tymurbiedukhin @bc-as @golcinho made updates for mobile menu styles that were discussed with designers |
@yurytut1993 lgtm |
What?
@BC-tymurbiedukhin @junedkazi @golcinho
In Cornerstone we have mobile menu with nested categories if they exist. For now we can not go to the subcategory page if it has its own subcategories (has arrow to dropdown). I have created a wrapper for arrow and replaced data attributes from link on this wrapper. Javascript uses this attributes to open/close nested subcategories.
So now link is responsible for redirect and arrow responsible for open/close nested subcategories. Also I updated icon wrapper styles to stretch it to the end of the row for comfortable toggling nested categories.
Styles wrote carefully and not affecting alternate menu styles (by default in config.json navigation_design option value is simple).
Tickets / Documentation
In Ticket you can see 2 videos (before_menu_links_update and after_menu_links_update) to better understand the result