Skip to content

Commit

Permalink
change(accordion): optionally load the menu.variables from eea theme …
Browse files Browse the repository at this point in the history
…or site theme

- in case someone adds an override for menu.variables itemVerticalPadding within
  a theme we should load and use those values instead
  • Loading branch information
ichim-david committed Jul 13, 2023
1 parent d903580 commit e886074
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/manage/Blocks/Accordion/editor.less
Expand Up @@ -2,11 +2,17 @@
@element: 'custom';
@itemVerticalPadding: 0.875em;
@itemHorizontalPadding: 1.25em;
@themesFolderEEA: 'eea';

@import (multiple) '../../theme.config';

// optionally import menu variables for itemVerticalPadding values
// loading them in a function would mean that the top variable declaration
// would win as such we use direct imports
// Site theme declaration of menu variables wins over default theme
@import (optional) '~volto-themes/default/collections/menu.variables';
@import (optional) '@{themesFolderEEA}/@{menu}/collections/menu.variables';
@import (optional) '@{siteFolder}/collections/menu.variables';

@borderColor: rgba(120, 192, 215, 0.75);

Expand Down

0 comments on commit e886074

Please sign in to comment.