Skip to content

🔍 FEATURE: Add justify-content prop to molecule tabs - #2977

Merged
andresin87 merged 3 commits into
masterfrom
molecule-tabs-justify-content
Sep 30, 2026
Merged

andresin87 merged 3 commits into
masterfrom
molecule-tabs-justify-content

Conversation

@andresin87

Copy link
Copy Markdown
Member

Molecule/Tabs

🚢 Ship

TASK:

Description, Motivation and Context

Background

No JIRA ticket associated with this change.

Goal

Enable flexible alignment of tab elements within the molecule tabs component by adding a configurable justify-content property. This allows consumers to align tabs to the start (default), center, or end of the container.

Implementation

  • Created TABS_JUSTIFY_CONTENT configuration in components/molecule/tabs/src/config.js defining three alignment options (flex-start, center, flex-end)
  • Modified components/molecule/tabs/src/components/MoleculeTabs.js to accept tabsJustifyContent prop with default value FLEX_START
  • Updated component className logic to apply justify-content-{value} CSS modifier based on the prop
  • Modified components/molecule/tabs/src/index.js to export TABS_JUSTIFY_CONTENT as moleculeTabsJustifyContent for consumer use
  • Added SCSS variables and styles in components/molecule/tabs/src/_settings.scss and components/molecule/tabs/src/styles/index.scss to support the new alignment classes
  • Created demo article in components/molecule/tabs/demo/Articles/ArticleTabsJustifyContent.js showcasing all three alignment options
  • Updated test suite in components/molecule/tabs/test/index.test.js with coverage for the new prop
  • Updated dependencies in package-lock.json

Further considerations

N/A

🤖 Generated with Claude Code

  • 🪲 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 🧾 Documentation
  • 📷 Demo
  • 🧪 Test
  • 🧠 Refactor
  • 💄 Styles
  • 🛠️ Tool

Screenshots - Animations

andresin87 and others added 3 commits September 30, 2026 11:19
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
… enum

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
STATEMENTS BRANCHES FUNCTIONS LINES
≍ ≍ 0= ≍ 0.01↑ ≍ 0= ≍ 0=
% 76.45 63.44 68.08 78.05
ABS 3511 / 4592 2133 / 3362 689 / 1012 3329 / 4265

@andresin87
andresin87 merged commit 33d1d46 into master Sep 30, 2026
7 checks passed
@andresin87
andresin87 deleted the molecule-tabs-justify-content branch September 30, 2026 09:55

This branch was successfully deployed

1 active deployment
Preview — 41e4e151 Deployed Sep 30, 2026 by andresin87 via Deploy #637
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant