design-angular-kit icon indicating copy to clipboard operation
design-angular-kit copied to clipboard

feat(tab): add responsive vertical breakpoint support

Open giulio-leone opened this issue 8 months ago • 3 comments

Closes #577

Adds a verticalBreakpoint input to ItTabContainerComponent that enables responsive vertical tab layout. When set, the vertical layout activates only when the viewport width is at or above the specified Bootstrap breakpoint (sm/md/lg/xl/xxl).

Changes

  • New BootstrapBreakpoint exported type
  • New verticalBreakpoint input on ItTabContainerComponent
  • isVertical computed getter replaces direct vertical usage in the template
  • Uses window.matchMedia for responsive switching with proper cleanup
  • Template updated to use isVertical for all class bindings
  • 6 new tests covering static vertical, responsive breakpoint, and cleanup

Usage

<it-tab-container [vertical]="true">...</it-tab-container>

<it-tab-container [vertical]="true" verticalBreakpoint="md">...</it-tab-container>

Testing

  • 115/115 tests passing (ChromeHeadless)
  • 0 lint errors
  • Double gate verified

⚠️ This reopens #645 which was accidentally closed due to fork deletion.

giulio-leone avatar Mar 25 '26 19:03 giulio-leone

@giulio-leone is attempting to deploy a commit to the dip-trasformazione-digitale Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Mar 25 '26 19:03 vercel[bot]

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
design-angular-kit Ready Ready Preview Mar 27, 2026 3:41pm

Request Review

vercel[bot] avatar Mar 27 '26 15:03 vercel[bot]

@astagi this PR needs a deeper investigation

valeriocomo avatar Apr 07 '26 15:04 valeriocomo