Repository navigation
fix: localization selector UI in mobile - #3211
Conversation
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
|
|
||
| display: flex; | ||
| flex-direction: column; | ||
| gap: var(--fs-spacing-2, 12px); |
There was a problem hiding this comment.
removing because --fs-spacing-2 = 12px, and we don't need it duplicated here.
WalkthroughThese changes refactor SCSS styling across two popover-related components. The Popover component receives a minor whitespace alignment adjustment, while the LocalizationSelector component replaces explicit token defaults with a dedicated design-tokens block, adds responsive max-width handling, and updates border syntax. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the 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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@packages/ui/src/components/organisms/LocalizationSelector/styles.scss`:
- Line 17: The CSS uses an undefined token (--fs-border-color-default) for the
border in styles.scss; replace it with an existing token that matches the
component intent (e.g., --fs-border-color or --fs-border-color-light) in the
rule that sets border: var(--fs-border-width) solid
var(--fs-border-color-default); so update that line to use the chosen valid
token (for example var(--fs-border-color)) and run a quick visual check of
LocalizationSelector to confirm the border looks correct.
| align-items: flex-end; | ||
| max-width: 288px; | ||
| border: 1px solid var(--fs-border-color-default); | ||
| border: var(--fs-border-width) solid var(--fs-border-color); |

What's the purpose of this pull request?
Small adjustment on the localization selection in mobile
How to test it?
Use this preview link: https://brandless-cma5xay4001f6dn4xjwato8b4-1cm5x229u-vtex-fs.vercel.app/
Starters Deploy Preview
https://github.com/vtex-sites/brandless.store/pull/143
Summary by CodeRabbit
Style
Refactor