Skip to content

feat: redesigned tab elements#21178

Draft
npapp-dev002 wants to merge 15 commits intodevelopfrom
feat/CXSPA-9062
Draft

feat: redesigned tab elements#21178
npapp-dev002 wants to merge 15 commits intodevelopfrom
feat/CXSPA-9062

Conversation

@npapp-dev002
Copy link
Copy Markdown
Contributor

@npapp-dev002 npapp-dev002 commented Feb 19, 2026

This PR modernizes the cx-tab-paragraph-container component styles while maintaining backward compatibility with the existing implementation.

To the best of my knowledge, there is no Figma or any design guidelines to follow. So I used common patterns and Sonnet to modernize the tab section.

closes: CXSPA-9062

Desktop:
image
image

Mobile:
Screenshot 2026-02-20 at 12 32 27
image

Changes

Product Reviews Component

  • Reordered header elements for better visual hierarchy and flexbox control

Tab Paragraph Container (_tab-paragraph-container.scss)

  • Refactored with clear separation between legacy (%pdpTabs, %pdpFlat) and modern (cx-tab) implementations
  • Added new %cx-tab-paragraph-container-modern with CSS custom properties, enhanced animations, and high contrast support
  • Removed deprecated $useAccordionOnly variable

Tab Component (_tab.scss)

  • Simplified base styles with cleaner transitions and improved accessibility (focus-visible)
  • Streamlined accordion mode with flexbox layout

Product Attributes (_product-attributes.scss)

  • Enhanced table styling with fixed layout and better column distribution
  • Added mobile-responsive stacked layout

Product Reviews Styles (_product-reviews.scss)

  • Improved header layout with flexbox alignment and gap spacing
  • Added mobile-responsive centered/stacked layout

Notes

  • Backward compatible with existing implementations
  • Legacy styles controlled via $useTabsOnPDP variable

- Reorder product reviews header to place write review button before rating
- Completely refactor tab-paragraph-container styles with CSS custom properties
- Add enhanced styling for both TAB (desktop) and ACCORDION (mobile) modes
- Simplify base cx-tab styles to provide functional defaults
- Add comprehensive theming support via CSS custom properties
- Improve responsive behavior and accessibility styling
@npapp-dev002 npapp-dev002 requested a review from a team as a code owner February 19, 2026 21:40
@github-actions github-actions Bot marked this pull request as draft February 19, 2026 21:40
@npapp-dev002 npapp-dev002 changed the title Feat/cxspa 9062 feat: redesigned tab elements Feb 19, 2026
@npapp-dev002 npapp-dev002 marked this pull request as ready for review February 20, 2026 06:27
@cypress
Copy link
Copy Markdown

cypress Bot commented Feb 20, 2026

spartacus    Run #51955

Run Properties:  status check passed Passed #51955  •  git commit 80686bae01 ℹ️: Merge 496a0bbda81598539807593cdd82e1bea40a1503 into 53c588ce6b132ee184fc9f9b0154...
Project spartacus
Branch Review feat/CXSPA-9062
Run status status check passed Passed #51955
Run duration 04m 23s
Commit git commit 80686bae01 ℹ️: Merge 496a0bbda81598539807593cdd82e1bea40a1503 into 53c588ce6b132ee184fc9f9b0154...
Committer Norbert Papp
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 5
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 101
View all changes introduced in this branch ↗︎

@SAP SAP deleted a comment from github-actions Bot Feb 20, 2026
@SAP SAP deleted a comment from github-actions Bot Feb 20, 2026
@github-actions github-actions Bot marked this pull request as draft February 20, 2026 11:31
@npapp-dev002 npapp-dev002 marked this pull request as ready for review February 20, 2026 12:54
Copy link
Copy Markdown
Contributor

@uroslates uroslates left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks way better than before! Great job!

  1. The only concern I have is weather we should consult/check this design with some UI/UX specialist? And verify other places places where this should be applied (similariy) - we can create separate followup Ticket for second part.

Also this is a breaking change and should be behind feature toggle.

  1. I spotted some issues with current implementation - please see attached screen-shoots below:
    2.1. hovering over tab is has issues like sharp angles (enlarge to see them). Should be rounded as active state.
    2.2. Using arrows to highlight tab buttons shows blue border but its cut off on both mobile and desktop
    2.3. On desktop selected tab's content has gray border but on mobile its blue (seems more natural with blue color but not sure what is expedted by UI). All in all those 2 should be consistent.
pdp-tabs-focus-issue-3 pdp-tabs-focus-issue-2-mobile pdp-tabs-focus-issue-1

@github-actions github-actions Bot marked this pull request as draft February 23, 2026 14:22
@npapp-dev002 npapp-dev002 marked this pull request as ready for review February 23, 2026 14:22
@github-actions github-actions Bot marked this pull request as draft February 23, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants