Skip to content

fix(tabs): render line variant indicator via after pseudo-element#10682

Open
abdulmunimjemal wants to merge 1 commit into
shadcn-ui:mainfrom
abdulmunimjemal:fix/tabs-line-variant-content
Open

fix(tabs): render line variant indicator via after pseudo-element#10682
abdulmunimjemal wants to merge 1 commit into
shadcn-ui:mainfrom
abdulmunimjemal:fix/tabs-line-variant-content

Conversation

@abdulmunimjemal
Copy link
Copy Markdown

Fixes #10497.

The bug

The line variant of TabsList does not render the active-tab indicator. Root cause: the pseudo-element used to draw the line (after:bg-foreground after:h-0.5 ...) is missing after:content-['']. Without an explicit content value, the pseudo-element does not generate a box, so its background and dimensions never paint.

The fix

Prepend after:content-[''] to the className string in both canonical source files:

  • apps/v4/registry/bases/base/ui/tabs.tsx
  • apps/v4/registry/bases/radix/ui/tabs.tsx

Then pnpm registry:build regenerates the affected apps/v4/public/r/styles/*/tabs.json files and apps/v4/styles/*/ui/tabs.tsx legacy mirrors.

Note re: PR #10544

PR #10544 attempts to fix the same issue but only edits apps/v4/styles/base-vega/ui/tabs.tsx — that file is a generated mirror overwritten by pnpm registry:build, so even if merged the fix would be overwritten on the next build, and only one of 14 style variants would have been covered. This PR fixes both canonical sources so all generated outputs get the fix.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 17, 2026

@abdulmunimjemal is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

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.

[bug]: (Base UI) The line variant version of TabsList doesn't display said lines.

1 participant