Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabowskiM committed Sep 6, 2023
1 parent 709973e commit 6e3a4a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}

return `#${group.id}`;
}
};

tabsHeaders.forEach((tabsHeader) => {
const popupMenu = tabsHeader.querySelector('.ibexa-tabs__popup-menu');
Expand Down Expand Up @@ -39,7 +39,6 @@

popupMenuItem?.classList.toggle('ibexa-popup-menu__item--error', hasGroupError);
}

}
});
};
Expand All @@ -55,7 +54,9 @@
if (popupMenu) {
const classInvalidHiddenChangedCallback = (mutationList) => {
mutationList.forEach(() => {
const popupMenuItems = popupMenu.querySelectorAll('.ibexa-popup-menu__item--error:not(.ibexa-popup-menu__item--hidden)');
const popupMenuItems = popupMenu.querySelectorAll(
'.ibexa-popup-menu__item--error:not(.ibexa-popup-menu__item--hidden)',
);

moreBtn.classList.toggle('ibexa-tabs__tab--error', popupMenuItems.length);
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<svg class="ibexa-icon ibexa-icon--small ibexa-tabs__tab-warning-icon">
<use xlink:href="{{ ibexa_icon_path('warning-triangle') }}"></use>
</svg>
</svg>
Original file line number Diff line number Diff line change
Expand Up @@ -179,20 +179,5 @@
{% endif %}
{% endfor %}
</div>
{# {% if item.count() < 4 %}
{% set listAttributes = item.childrenAttributes|merge({'class': (listAttributes.class|default('') ~ ' ibexa-anchor-navigation-menu__section-groups ibexa-anchor-navigation-menu__section-groups--list ibexa-tabs')|trim}) %}
{% set innerChildrenBlock = 'children_1st_level' %}
{% set innerItemBlock = 'item_1st_level' %}
{% set tagElement = 'div' %}
{% set itemTagElement = 'button' %}
{% else %}
{% set listAttributes = item.childrenAttributes|merge({'class': (listAttributes.class|default('') ~ ' ibexa-anchor-navigation-menu__section-groups ibexa-anchor-navigation-menu__section-groups--dropdown')|trim}) %}
{% set innerChildrenBlock = 'children_1st_level_dropdown' %}
{% set tagElement = 'div' %}
{% endif %}
{% if item.count() > 1 %}
{{ block('anchor_menu_list') -}}
{% endif %}
#}
</div>
{% endblock %}

0 comments on commit 6e3a4a4

Please sign in to comment.