Skip to content

feat(language-switcher-pill): spring indicator, variants, sizes and flags - #68

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

sapatmohit merged 5 commits into
mainfrom
feat/redesign-language-switcher-pill

Conversation

@sapatmohit

Copy link
Copy Markdown
Member

Description

  • Indicator is a motion layoutId scoped per instance — replaces manual measurement, ResizeObserver and font-load handling; RTL follows layout.
  • shadcn tokens; new variant (default / outline), size, showFlags, disabled, classNames; data-state on items.
  • Registry: adds locale-data dependency (flags).
  • Backward compatible; radiogroup semantics and roving focus unchanged. 4 new tests.

Closes #60

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/redesign-language-switcher. 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 40 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: 5658dae1-a64e-406b-9c6e-0c8700b90f31
📥 Commits

Reviewing files that changed from the base of the PR and between 488fbc6 and 520ca74.

📒 Files selected for processing: 5
  • content/docs/components/language-switchers/language-switcher-pill.mdx
  • src/registry/components/index.ts
  • src/registry/components/language-switcher-pill.tsx
  • src/registry/registry.ts
  • test/language-switcher-pill.test.tsx
  • 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.

Base automatically changed from feat/redesign-language-switcher to main October 19, 2026 18:57
@sapatmohit
sapatmohit merged commit cd4af91 into main Oct 19, 2026
2 checks passed
@sapatmohit
sapatmohit deleted the feat/redesign-language-switcher-pill branch October 19, 2026 18:59
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 LanguageSwitcherPill

1 participant