generated from eea/volto-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mega-menu): add layouts for mega menu - refs #253966 (#375)
* feat: add layouts for mega menu - refs #253966 * remove settings * add list behaviour for sub children * modified StandardMegaMenuGrid logic * add hideChildrenFromNavigation * fix typo * feat: add classes for columns from config settings * fix order for css classes * cleaned up overrides that were no longer needed and modified selector of ui grid with something more descriptive of where you want to remove the top margin from * added missing column class from the countries mega menu section * fix warnings * remove unreachable code * change(mega-menu): removed section.title logic since we now set layout from config per url * change(mega-menu): removed itemsEquallySpread logic, there is no need for special country column * change(mega-menu): topics at a glance styling after move to classes from id's - also add a 2rem gap for the list items, without it in topics section Climate change mitigation: reducing emissions would break on next column making it hard to read * change(menu): use has--count--columns classes instead of inline styles for setting columns * change(menu): move layouts to a prop in order to pass it when using component in storybook - also avoid adding the has--number--column if there is less than 2 as it makes no sense to have 1 column as that is the default behaviour * feat(menu): added ability to append any extra menu items to the last column - modified storybook to make it work with the latest refactoring - modified has--value--column to start from 2 to 6 * change(menu): renamed columnsWidth to menuItemsColumns * change(menu): renamed childrenColumns to menuItemListColumns - the columns property is set on the list item where the subchildren are displayed as such we use this new name for better representation of what it does * change(menu): modified urls for topic, countries and about to prepend en - this way the config can be shared with other projects such as volto-eea-website-theme * refactor(menu): standard mega menu grid simplification * change(menu): renamed menuItemListColumns to menuItemChildrenListColumns for greater clarity - the columns are applied to the children items --------- Co-authored-by: David Ichim <[email protected]>
- Loading branch information
1 parent
6d41254
commit a675411
Showing
5 changed files
with
150 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.