Skip to content

fix: localization selector UI in mobile - #3211

Merged
hellofanny merged 3 commits into
feat/multilanguagefrom
fix/selector-ui-mobile
Feb 17, 2026
Merged

hellofanny merged 3 commits into
feat/multilanguagefrom
fix/selector-ui-mobile

Conversation

@hellofanny

@hellofanny hellofanny commented Feb 17, 2026 •

Copy link
Copy Markdown
Contributor

What's the purpose of this pull request?

Small adjustment on the localization selection in mobile

before after
mob-before mob-after

How to test it?

Use this preview link: https://brandless-cma5xay4001f6dn4xjwato8b4-1cm5x229u-vtex-fs.vercel.app/

  1. Check if the selector remains the same in the desktop version.
  2. Now, resize the window to the mobile view.
  3. The selector should occupy the full width, as shown in the image above.

Starters Deploy Preview

https://github.com/vtex-sites/brandless.store/pull/143

Summary by CodeRabbit

  • Style

    • Minor formatting adjustment in Popover component styles.
  • Refactor

    • Consolidated design tokens in LocalizationSelector component with improved responsive behavior for tablet breakpoints and updated border handling.

@hellofanny hellofanny self-assigned this Feb 17, 2026
@codesandbox-ci

codesandbox-ci Bot commented Feb 17, 2026 •

Copy link
Copy Markdown

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);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

removing because --fs-spacing-2 = 12px, and we don't need it duplicated here.

@hellofanny
hellofanny marked this pull request as ready for review February 17, 2026 16:33
@hellofanny
hellofanny requested a review from a team as a code owner February 17, 2026 16:33
@hellofanny
hellofanny requested review from gabpaladino, lariciamota, lemagnetic and renatamottam and removed request for a team, gabpaladino and renatamottam February 17, 2026 16:33
@coderabbitai

coderabbitai Bot commented Feb 17, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

These 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

Cohort / File(s) Summary
Popover Styling
packages/ui/src/components/molecules/Popover/styles.scss
Whitespace and alignment adjustment in CSS variable declarations with no semantic impact.
LocalizationSelector Styling
packages/ui/src/components/organisms/LocalizationSelector/styles.scss
Design tokens refactor: replaced explicit popover defaults with dedicated tokens block, added responsive max-width for tablet breakpoint, updated border-width variable usage, and simplified gap syntax.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Suggested reviewers

  • lemagnetic

Poem

🎨 Tokens dance in scss refrains,
Popover styles, responsive gains,
Tablets whisper—width expands,
Design harmony, by crafted hands ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the primary change: a mobile UI fix for the localization selector. It's specific, concise, and directly reflects the main objective of the PR.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/selector-ui-mobile

Warning

Review ran into problems

🔥 Problems

Git: Failed to clone repository. Please run the @coderabbitai full review command to re-trigger a full review. If the issue persists, set path_filters to include or exclude specific files.


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 and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Image

@hellofanny
hellofanny merged commit e127373 into feat/multilanguage Feb 17, 2026
2 checks passed
@hellofanny
hellofanny deleted the fix/selector-ui-mobile branch February 17, 2026 18:19
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.

2 participants