Skip to content

Fixed rendering tab menu for single tab#1859

Open
ciastektk wants to merge 1 commit into4.6from
fixed-rendering-tabs
Open

Fixed rendering tab menu for single tab#1859
ciastektk wants to merge 1 commit into4.6from
fixed-rendering-tabs

Conversation

@ciastektk
Copy link
Copy Markdown
Contributor

🎫 Issue N/A

Description:

Updated tabs.html.twig so tab navigation is rendered only when a tab group contains at least two tabs.

What changed:

• Added a condition to render the tabs header and tab container only for tabs|length > 1.
• Added a single-tab fallback (tabs|length == 1) that renders only the tab content (single_tab.content) without tab navigation/wrapper UI.

Result:

• Groups registered via ibexa.admin_ui.tab now use the standard view when only one tab is available.
• Tab menu appears only when there are at least two tabs in the group.

For QA:

Documentation:

@ciastektk ciastektk requested a review from a team March 26, 2026 08:44
@ibexa-workflow-automation-1 ibexa-workflow-automation-1 bot requested review from Steveb-p, ViniTou, alongosz, barw4, konradoboza, mikadamczyk, tbialcz and wiewiurdp and removed request for a team March 26, 2026 08:44
@juskora juskora force-pushed the fixed-rendering-tabs branch from 074fe88 to de29d35 Compare April 7, 2026 10:09
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 7, 2026

@juskora
Copy link
Copy Markdown
Contributor

juskora commented Apr 9, 2026

QA Approved on Ibexa DXP Commerce 4.6-dev.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants