Pattern: How should we implement tab navigation across all Vitto AI c...

Documentation for Sessions

🎨 Pattern: How should we implement tab navigation across all Vitto AI c...

Date: 2026-02-17
Time: 19:06:57 UTC
Session: gspace1-111.2
Agent: angular
Confidence: 95%
Status: ✅ Documented


📋 Decision Context

Question:

How should we implement tab navigation across all Vitto AI components?

Task: Session 111.2 - Complete migration of all Vitto components from manual tab styling to ux-tabs component


🎯 Decision Made

Chosen:

Use the centralized ux-tabs component with variant="floating" and appropriate level (1, 2, or 3)

Options Considered:

  1. Create custom tab styles for each component
  2. Use ux-tabs component with standardized hierarchy
  3. Mix of custom and component-based approaches

💭 Reasoning

DRY principle - eliminated 288+ lines of duplicated SCSS by migrating to ux-tabs. Single source of truth ensures consistent design system adherence, easier maintenance, and automatic enforcement of three-level tab hierarchy (Level 1: 16px/52px, Level 2: 14px/44px, Level 3: 12px/36px). Router integration works seamlessly for route-based tabs. All future tab implementations should use ux-tabs to maintain consistency.


📁 Files Involved


🔗 Related


Auto-generated by MCP Smart Consolidation