Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change disclosure list width for country/currency selector #3631

Merged

Conversation

eugenekasimov
Copy link
Contributor

@eugenekasimov eugenekasimov commented Sep 27, 2024

PR Summary:

The country selector dropdown will put long country names with multiple words, like "United States" or "United Kingdom" on two lines instead of one line. This happens in case when a store has the same currency for different markets, so the currency code is not rendered on a list. The PR fixes it.

Before
Screenshot 2024-09-27 at 12 25 56 PM

After
Screenshot 2024-09-27 at 12 25 42 PM

Other considerations

Let's be careful with this. it was changed the way it is now for a reason. However, I could find any side effect for now.

Testing steps/scenarios

  • Step 1

Demo links

Checklist

@eugenekasimov eugenekasimov changed the title Change disclosure list width Change disclosure list width for country/currency selector Sep 27, 2024
@@ -148,7 +148,7 @@
max-height: 20.5rem;
max-width: 25.5rem;
min-width: 12rem;
width: 100%;
width: max-content;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

From my understanding this should have an impact only on a list when currency code is not rendered. Otherwise,

.country-selector__list--with-multiple-currencies {
  width: 25.5rem;
}

this 👆 applied.

Copy link
Contributor

@melissaperreault melissaperreault left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@eugenekasimov eugenekasimov merged commit 6b95cb1 into main Sep 27, 2024
8 checks passed
@eugenekasimov eugenekasimov deleted the euegen/fix-currency-list-width-for-no-currency-code branch September 27, 2024 20:20
NathanScheele pushed a commit to Misha-Puff/dawn that referenced this pull request Nov 26, 2024
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