Skip to content

IBX-11909: new main menu design#1944

Open
tischsoic wants to merge 12 commits into
ds-developmentfrom
new-menu
Open

IBX-11909: new main menu design#1944
tischsoic wants to merge 12 commits into
ds-developmentfrom
new-menu

Conversation

@tischsoic

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-11909

Description:

For QA:

Documentation:


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.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@tischsoic tischsoic marked this pull request as ready for review June 23, 2026 07:21
@tischsoic tischsoic requested a review from a team June 23, 2026 07:21
@ibexa-workflow-automation-1 ibexa-workflow-automation-1 Bot requested review from GrabowskiM, OstafinL, albozek, alekmick and dew326 and removed request for a team June 23, 2026 07:22
Comment on lines +50 to +52
padding: 1px 0;
margin-left: 12px;
margin-top: 8px;

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);

Comment on lines +3 to +4
{% set text_column_class = text_column_class|default('') %}
{% set text_column_classes = ['ibexa-main-menu__item-text-column', text_column_class]|filter(class => class is not empty) %}

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.

If we're in 6.0 where we have twig/html-extra enabled, we can do it like this

{% set text_column_class = html_classes('ibexa-main-menu__item-text-column', text_column_class|default('')) %}

(and latej in line 10 that join is not needed)
html_classes manages itself empty strings and doesn't add unnecessary whitespaces :)

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.

I followed the old syntax to stay consistent with how it is done in other menu related places :)

(new Message(self::ITEM_CONTENT__CONTENT_STRUCTURE, 'ibexa_menu'))->setDesc('Content structure'),
(new Message(self::ITEM_CONTENT__MEDIA, 'ibexa_menu'))->setDesc('Media'),
(new Message(self::ITEM_ADMIN, 'ibexa_menu'))->setDesc('Admin'),
(new Message(self::ITEM_ADMIN, 'ibexa_menu'))->setDesc('Administration'),

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.

Translation extraction :)

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.

I'm fixing translations on the base branch and cannot regenerate it until it is fixed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants