Skip to content

Commit

Permalink
feat(accordion): accordion title now has css variable for justificati…
Browse files Browse the repository at this point in the history
…on and icon order

- this way since in volto-tabs-blocks we have icon to the right as option there we can
  modify the order of the icon to set it to the left when that option isn't activated
  • Loading branch information
ichim-david committed Sep 25, 2023
1 parent fd4831e commit cd775de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions theme/themes/eea/modules/accordion.variables
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@titleColor: @textColorCSSVar;
@titleBorderBottom: @1px solid @silverGray;
@titleColorHover:var(--text-color-hover, @grey-5);
@titleJustifyContent: space-between;
@titleJustifyContent: var(--accordion-title-justify, space-between);

/* Icon */
@iconColor: var(--text-color, @oldSilver);
Expand All @@ -33,7 +33,7 @@
@iconVerticalAlign: baseline;
@iconTransform: none;
@iconColorHover: @titleColorHover;
@iconOrder: 1; // Icon after text of the title
@iconOrder: var(--accordion-title-icon-order, 1); // Icon after text of the title
@filterIconWidth: 3rem;
@filterIconFontSize: 2rem;
@filterIconMargin: 0 10px;
Expand Down

0 comments on commit cd775de

Please sign in to comment.