Skip to content

feat(language-switcher): redesign with shadcn tokens, motion and part slots - #67

Merged
sapatmohit merged 4 commits into
mainfrom
feat/redesign-language-switcher
Oct 19, 2026
Merged

sapatmohit merged 4 commits into
mainfrom
feat/redesign-language-switcher

Conversation

@sapatmohit

Copy link
Copy Markdown
Member

Description

  • shadcn tokens; trigger variant (outline / ghost / secondary) and size; globe icon when flags are off.
  • Animated enter/exit menu (reducedMotion="user"); the exiting panel is aria-hidden. Flips upward when there is no room; align / side.
  • Search row with icon, clear button and empty state; quieter selected state (check only).
  • New: classNames, renderOption, showCode, searchable, searchPlaceholder, emptyMessage, disabled. Types exported from the barrel.
  • Backward compatible; keyboard and ARIA behaviour unchanged (existing tests pass untouched).

Closes #59

Type of change

  • Enhancement

Checklist

  • Dark mode / responsive styles considered
  • bun run lint passes
  • bun run typecheck passes
  • bun run test passes
  • CI checks pass

Notes

Stacked PR — base is feat/shadcn-theme-foundation. Merge in order; GitHub retargets to main as each base merges.

Components move to shadcn semantic tokens so they inherit the consuming
app's theme. motion and lucide-react become runtime dependencies.

Closes #58
@sapatmohit sapatmohit added enhancement New feature or request component New or modified component language-switcher Language switcher component labels Oct 19, 2026
@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 42 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ec619d89-8056-4ca2-8779-2a6612d9eec8
📥 Commits

Reviewing files that changed from the base of the PR and between 7f54f7d and 2bb336f.

📒 Files selected for processing: 4
  • content/docs/components/language-switchers/language-switcher.mdx
  • src/registry/components/index.ts
  • src/registry/components/language-switcher.tsx
  • src/registry/registry.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sapatmohit
sapatmohit deleted the branch feat/shadcn-theme-foundation October 19, 2026 18:53
@sapatmohit sapatmohit closed this Oct 19, 2026
@sapatmohit sapatmohit reopened this Oct 19, 2026
@sapatmohit
sapatmohit changed the base branch from feat/shadcn-theme-foundation to main October 19, 2026 18:55
@sapatmohit
sapatmohit merged commit 488fbc6 into main Oct 19, 2026
2 checks passed
@sapatmohit
sapatmohit deleted the feat/redesign-language-switcher branch October 19, 2026 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component New or modified component enhancement New feature or request language-switcher Language switcher component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Redesign LanguageSwitcher

1 participant