Skip to content

fix(tabs): move box border rendering to tab item - #8160

Open
tarunvashishth wants to merge 1 commit into
patternfly:mainfrom
tarunvashishth:fix/tabs-box-border-placement
Open

tarunvashishth wants to merge 1 commit into
patternfly:mainfrom
tarunvashishth:fix/tabs-box-border-placement

Conversation

@tarunvashishth

@tarunvashishth tarunvashishth commented Feb 20, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #7863

This change moves box variant border rendering from the tab link/button pseudo-element to the parent tab item pseudo-element, so the link pseudo-element can be used for high-contrast interactive borders with the correct plain-action tokens.

  • Replaced link-before box border token set with item-before token set:
    • src/patternfly/components/Tabs/tabs.scss:101
  • Moved box border variable assignments from link to item in box/vertical paths:
    • src/patternfly/components/Tabs/tabs.scss:300
    • src/patternfly/components/Tabs/tabs.scss:356
    • src/patternfly/components/Tabs/tabs.scss:463
  • Added actual item border rendering on .__tabs__item::before:
    • src/patternfly/components/Tabs/tabs.scss:589
  • Updated shared pseudo-element selector groups to include .__tabs__item::before:
    • src/patternfly/components/Tabs/tabs.scss:629
  • Updated nav reset to clear item borders instead of link-before borders:
    • src/patternfly/components/Tabs/tabs.scss:529
  • Kept disabled box-border handling, scoped to box variant via :has(...):
    • src/patternfly/components/Tabs/tabs.scss:609
  • Repurposed link ::before to draw high-contrast interactive border from link tokens:
    • src/patternfly/components/Tabs/tabs.scss:685
  • Link border token updates for correct plain-action widths:
    • src/patternfly/components/Tabs/tabs.scss:69
    • src/patternfly/components/Tabs/tabs.scss:71
    • src/patternfly/components/Tabs/tabs.scss:73
  • Updated add-button border token source to item border base token:
    • src/patternfly/components/Tabs/tabs.scss:198

Assisted by: GitHub Copilot.

@patternfly-build

patternfly-build commented Feb 20, 2026 •

Copy link
Copy Markdown
Collaborator

@github-actions

Copy link
Copy Markdown

This PR has been automatically marked as stale because it has not had activity in the last 60 days.

@github-actions github-actions Bot added the Stale label Apr 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug - Tabs - move "box" borders from link to list item, fix HC styles

2 participants