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
feat(organisms): Burger Menu #20
Conversation
packages/bodiless-organisms/src/components/BurgerMenu/asEditableBurgerSubMenu.tsx
Show resolved
Hide resolved
packages/bodiless-organisms/src/components/MainMenu/asEditableMainMenu.tsx
Outdated
Show resolved
Hide resolved
packages/bodiless-organisms/src/components/MainMenu/asEditableMenu.tsx
Outdated
Show resolved
Hide resolved
packages/bodiless-organisms/src/components/MainMenu/asEditableSubMenu.tsx
Outdated
Show resolved
Hide resolved
packages/bodiless-organisms/src/components/MainMenu/asSubMenu.tsx
Outdated
Show resolved
Hide resolved
packages/bodiless-organisms/src/components/MainMenu/asSubMenu.tsx
Outdated
Show resolved
Hide resolved
packages/bodiless-organisms/src/components/MainMenu/withEditableTitle.tsx
Outdated
Show resolved
Hide resolved
asMainMenu, | ||
withDesign({ | ||
Wrapper: replaceWith<any>(stylable(SubMenu)), | ||
// @ts-ignore: Types of parameters are incompatible. |
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.
This is not sufficient documentation. Please explain why it's not practical to resolve this type error.
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.
Updated with an attempt to resolve a type error
Works as described in test instructions. Passed at a7892a4. |
Update of master
a7892a4
to
25a8a6f
Compare
- New component Burger Menu added into bodiless-organisms - header uses new design API - Added Burger Menu to the site header (visible only on mobile screens) - Added new page /burger-menu/ with burger-menu example - Basic Documentation for the Burger Menu - updated package* files with new dependency - negomi/react-burger-menu - Submenus in Burger Menu implemented as accordions - If menu item with submenu is a link, than "Overview" link added to accordion body. "Overview" text is configurable by site-builder - Updates for Main Menu: new HOC's: asMainMenu, asEditableMainMenu Technical Details: - Extended the site tailwind.config - Burger Menu API matches Main Menu API - new HOC - asStatic sets the component and its children to read-only mode - fix for List, preventing unwanted properties to appear into static mode - Standardized API for applying responsive classes between - withEditableTitle HOC: Allow injection of asEditable to support different kinds of editors References: - https://www.npmjs.com/package/react-burger-menu How To Test: - Add to site's Main Menu next items: - Item with link and with submenu - Item without link and with submenu - Item with link and without submenu - Item without link and without submenu - Resize the browser screen to small size - Check that burger menu button is visible - Open the burger menu - Check that close button works as expected - Check that items with submenu rendered as accordionns - Check that item with link and with submenu has an "Overview" link in the accordion body
25a8a6f
to
b0b22d2
Compare
According to requirements the breakpoints width of the screen when the main menu should turn into burger menu should be 1024px. Currently it toggles at 768px. STR ER AR |
- main visible visible on screens with width 1024px or more
Refresh my fork
Remove migration tool.
* Replace WTB with styled link * Fix lint * Remove burger menu toggler component. Co-authored-by: Guilherme Almeida Zeni <gzeni@ciandt.com>
* feature(bc-footer): Add Brand.com Footer * feature(bc-footer): Final Styles Adjustments * feature(bc-footer): Copyright as RTE, Add TODO On Social Links AND Removed Unnecessary FlowHoc * feature(bc-footer): Move Sepator Styles To Its Own Token * feature(bc-footer): Rename GlobalFooter To Footer * feature(bc-footer): Address PR Feedback - Batch 1 * Reorganize menu. (#7) * Reorganize menu. * Remove redundant footer menu styling. * Add submenu titles. * Remove duplication in MenuTitleClean * Fix lint * Add canvasx token docs. * feature(bc-footer): Fix doc typo Co-authored-by: hvanyo <58534559+hvanyo@users.noreply.github.com> * feature(bc-footer): Fix doc typo Co-authored-by: hvanyo <58534559+hvanyo@users.noreply.github.com> Co-authored-by: Guilherme Almeida Zeni <gzeni@ciandt.com> Co-authored-by: hvanyo <58534559+hvanyo@users.noreply.github.com> * feature(bc-footer): Update Footer Menu Data * feature(bc-footer): Update Package.Lock * feature(bc-footer): Remove Console Log From Menu Separator * feature(bc-footer): Improve Footer Structure For Later Static Implementation * feature(bc-footer): Add Todo Comments * feature(bc-footer): Rename SiteHeader And SiteFooter To Header And Footer * feature(bc-footer): Add Cx Navigation To TSConfig * feature(bc-footer): Rename Remaining SiteHeader And SiteFooter To Header And Footer * feature(bc-footer): Adjust Layout After Updates * Token site constrains (#8) * feature(bc-footer): Add Footer Slots Wrappers * feature(bc-footer): Refactor Footer Copyright RichText * feature(bc-footer): Update Footer And Copyright Keys * feature(bc-footer): Add Footer Page Example * feature(bc-footer): Feedback Fixes - Batch 2 * feature(bc-footer): Update Cx Navigation Package Version * fix(bc-footer): Fix Footer Issues (#10) * bugfix(bc-footer): Fix Footer Issues * Remove top margin from in footnote * Add uppercase to submenu items * Removing unused imports * bugfix(bc-footer): Fix comments on PR * bugfix(bc-footer): Fix link issues Co-authored-by: Guilherme Zeni <gzeni@its.jnj.com> Co-authored-by: guilhermegpessoa <guilherme.gpessoa@hotmail.com> * feature(bc-footer): Fix issues after main branch update * feature(cx-navigation): Add CX Navigation * feature(cx-navigation): Add WTB Button Placeholder * feature(navigation): Update Content For Better Styling * feature(bc-navigation): Style Burger Menu For Mobile And Tablet * feature(bc-navigation): Fix Where To Buy Components Name * feature(bc-navigation): Fix Issues Due To Conflict Resolution * feature(bc-navigation): Reupdate Header After Conflicts Resolution * feature(bc-navigation): Add Navigation Desktop Style * fix(bc-footer): Fix footer issues (#13) * fix(bc-footer): Fix padding issues * fix(bc-footer) Fix padding values * fix(bc-footer): Fix padding issues * feature(navigation): Remove Unused Module Import * feature(bc-navigation): Add NoWrap To Menus * feature(bc-navigation): Address Feedback * feature(bc-footer): Update Footer Content * bugfix(bc-footer): Fix Footer Menu Issues Issues (#16) * bugfix(bc-footer): Fix Footer Menu Accessibility Issues * bugfix(bc-footer): Add External And Download Icons To Menu Title Links Co-authored-by: Guilherme Zeni <gzeni@its.jnj.com> * Feature/bc navigation (#19) * Replace WTB with styled link * Fix lint * Feature/cx navigation toggler (#20) * Replace WTB with styled link * Fix lint * Remove burger menu toggler component. Co-authored-by: Guilherme Almeida Zeni <gzeni@ciandt.com> * feature(bc-navigation): Last Updates * feature(bc-navigation): Remove Old Index File * feature(bc-navigation): Update Header Constrains To Be In Container Component * feature(bc-navigation): Fix Header BG After Main Updates * docs(bc-navigation): BC Navigation Docs * bugfix(bc-navigation): Fix Navigation Issues (#21) Co-authored-by: Guilherme Zeni <gzeni@its.jnj.com> * feature(bc-navigation): Fix Submenu Paddings * bugfix(bc-navigation): Fix Safari Burger Menu Issue And Add ID To Header (#22) Co-authored-by: Guilherme Zeni <gzeni@its.jnj.com> * feature(bc-navigation): Fix Safari Issues (#24) Co-authored-by: Guilherme Zeni <gzeni@its.jnj.com> * feature(cx-navigation): Update Tailwind Configs After Merge Conflicts Resolution * feature(bc-navigation): Fix Top Nav Menu Style Co-authored-by: Guilherme Zeni <gzeni@its.jnj.com> Co-authored-by: wodenx <wodenx@gmail.com> Co-authored-by: hvanyo <58534559+hvanyo@users.noreply.github.com> Co-authored-by: guilhermegpessoa <guilherme.gpessoa@hotmail.com> Co-authored-by: guilhermegpessoa <48322825+guilhermegpessoa@users.noreply.github.com>
feat(vital-card): Merge in Vital Card
Changes
Technical Details
Test Instructions
References:
Related Issues