Skip to content

[BOOKINGSG-9309][GZ] migrate language switcher to linaria css#1172

Merged
ghazwan-gt merged 11 commits into
pre-release/v4from
BOOKINGSG-9309/language-switcher
May 15, 2026
Merged

[BOOKINGSG-9309][GZ] migrate language switcher to linaria css#1172
ghazwan-gt merged 11 commits into
pre-release/v4from
BOOKINGSG-9309/language-switcher

Conversation

@ghazwan-gt
Copy link
Copy Markdown

Checklist

  • Migrated the component styles
    • className is chained correctly with clsx
    • User style prop is set as CSS variable
  • Changes follow the project guidelines in CONVENTIONS_V4.md
  • Updated Storybook documentation
  • Added/updated unit tests
  • Added visual tests
  • Listed breaking changes

ref={setFloatingRef}
style={{ ...styles, width: elementWidth }}
className={styles.dropdownPanel}
style={{ ...floatingStyles, width: elementWidth }}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

hmm so floatingStyles, we probably can just leave it be but for elementWidth we probably should still use the useApplyStyles hook. can create a new ref to set it and merge it with the floatingRef

Comment thread e2e/nextjs-app/src/app/components/[component]/[story]/page.tsx Outdated
Comment thread e2e/tests/components/language-switcher/language-switcher.e2e.spec.ts Outdated
Comment thread e2e/tests/components/language-switcher/language-switcher.e2e.spec.ts Outdated
@qroll qroll added the type: chore For technical improvements or refactoring. label May 14, 2026
@qroll qroll added this to the v4.0.0-alpha.3 milestone May 14, 2026
@ghazwan-gt ghazwan-gt force-pushed the BOOKINGSG-9309/language-switcher branch from 33d0434 to bd2ec4f Compare May 15, 2026 04:27
@ghazwan-gt ghazwan-gt merged commit 5b0ced4 into pre-release/v4 May 15, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: chore For technical improvements or refactoring.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants