Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@ const hideAll = (baseElement = doc) => {
const tooltipsNode = baseElement.querySelectorAll(TOOLTIPS_SELECTOR);

for (const tooltipNode of tooltipsNode) {
bootstrap.Tooltip.getOrCreateInstance(tooltipNode).hide();
const tooltipInstance = bootstrap.Tooltip.getInstance(tooltipNode);

@tischsoic tischsoic Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: fix needed to avoid creating tooltip instances when hiding tooltips, which circumvent our parse function's custom logic.


tooltipInstance?.hide();
}
};
const observe = (baseElement = doc) => {
Expand Down
361 changes: 182 additions & 179 deletions src/bundle/Resources/public/js/scripts/sidebar/main.menu.js

Large diffs are not rendered by default.

41 changes: 37 additions & 4 deletions src/bundle/Resources/public/scss/_main-menu-popup.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,33 @@
@use '@ibexa-admin-ui/src/bundle/Resources/public/scss/functions/calculate.rem' as *;

.ibexa-main-menu-popup {
background-color: $ibexa-color-dark;
border-color: $ibexa-color-dark-500;

&__item-content {
color: $ibexa-color-white;
padding: calculateRem(7.5px) calculateRem(12px);

> .ibexa-main-menu__item-text-column {
padding: 0;
}

&:hover {
color: $ibexa-color-complementary-primary-400;
background-color: transparent;
}

&--current {
> .ibexa-main-menu__item-text-column {
color: $ibexa-color-complementary-primary-400;
}
}
}

&__group-item {
flex-direction: column;
height: 100%;
align-items: initial;
border-top: calculateRem(1px) solid $ibexa-color-info-800;

.ibexa-popup-menu {
&__item {
Expand All @@ -15,14 +37,25 @@
}
}

.ibexa-main-menu-popup &__group-name {
color: $ibexa-color-light-700;
&__group-item-content {
color: $ibexa-color-dark-300;
padding: 0;
}

&__group-name {
border-top: calculateRem(1px) solid $ibexa-color-dark-500;
color: $ibexa-color-dark-500;
font-size: $ibexa-text-font-size-small;
cursor: initial;
padding: 1px 0;
margin-left: 12px;
margin-top: 8px;
Comment on lines +50 to +52

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
padding: 1px 0;
margin-left: 12px;
margin-top: 8px;
padding: calculateRem(1px) 0;
margin-left: calculateRem(12px);
margin-top: calculateRem(8px);

border-radius: 0;
width: initial;

&:hover {
background-color: initial;
color: $ibexa-color-light-700;
color: $ibexa-color-dark-500;
}
}
}
Loading
Loading