Skip to content

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

Open
ghazwan-gt wants to merge 6 commits into
pre-release/v4from
BOOKINGSG-9309/language-switcher
Open

[BOOKINGSG-9309][GZ] migrate language switcher to linaria css#1172
ghazwan-gt wants to merge 6 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

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.

3 participants