From 44a59662a74def17042e247cd6e1e2996db72e61 Mon Sep 17 00:00:00 2001 From: giulio-leone Date: Wed, 25 Mar 2026 11:36:43 +0100 Subject: [PATCH 1/2] feat(tab): add responsive vertical breakpoint support Add verticalBreakpoint input to ItTabContainerComponent that allows the vertical layout to activate only above a specified Bootstrap breakpoint (sm/md/lg/xl/xxl). Uses window.matchMedia for responsive switching. The vertical input continues to work as before when no breakpoint is specified. Closes #577 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../tab-container.component.html | 30 ++++---- .../tab-container.component.spec.ts | 39 ++++++++++ .../tab-container/tab-container.component.ts | 71 ++++++++++++++++++- 3 files changed, 124 insertions(+), 16 deletions(-) diff --git a/projects/design-angular-kit/src/lib/components/core/tab/tab-container/tab-container.component.html b/projects/design-angular-kit/src/lib/components/core/tab/tab-container/tab-container.component.html index af19f79c..98aea213 100644 --- a/projects/design-angular-kit/src/lib/components/core/tab/tab-container/tab-container.component.html +++ b/projects/design-angular-kit/src/lib/components/core/tab/tab-container/tab-container.component.html @@ -1,20 +1,20 @@
+ [class.row]="isVertical" + [class.flex-row-reverse]="inverted && isVertical" + [class.d-flex]="inverted && !isVertical" + [class.flex-column-reverse]="inverted && !isVertical">
+ [class.col-5]="inverted && isVertical" + [class.col-md-4]="inverted && isVertical" + [class.col-lg-3]="inverted && isVertical" + [class.col-4]="!inverted && isVertical" + [class.col-md-3]="!inverted && isVertical"> @if (tabs) {