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
School Info Interstitial: country dropdown bug #30050
Conversation
Codecov Report
@@ Coverage Diff @@
## staging #30050 +/- ##
==========================================
Coverage ? 72.03%
==========================================
Files ? 1368
Lines ? 84453
Branches ? 3397
==========================================
Hits ? 60835
Misses ? 20385
Partials ? 3233
Continue to review full report at Codecov.
|
@@ -75,6 +75,7 @@ export default class CountryAutocompleteDropdown extends Component { | |||
placeholder={i18n.searchForCountry()} | |||
labelKey="value" | |||
matchPos="start" | |||
maxHeight={160} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copying over my comment from the previous PR:
Ideally we'd let the dropdown expand to fill the screen. Can we clear
overflow: auto;
on the modal div, or does that cause other problems?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I set the over-flow to "initial" but it didn't fix the country dropdown bug. This might be due to the overflow property not being a react virtualized select prop (there seems to be a custom option). See react virtualized select
Since maxHeight is react virtualized select prop, setting the dropdown height to be 80% of the total height of the modal is a solution to this bug. Thoughts.
How does this change affect other uses of the Other uses of |
@Erin007 Thanks for the questions. The change does not affect other uses of CountryAutocompleteDropdown |
@Erin007 The old_sign_up_form is still in use. From my discussion with Brad & Maddie, the naming of the file is a result of a split test that was conducted previously that was inconclusive. We are still using the “new” flow for Oauth signups, and the “old” flow for email sign-ups. I have an action item to rename the "old_sign_up_form" so it is not confusing. |
Bug: country dropdown is clipped by School Info Interstitial modal edge
Fix: set max-height for select element dropdown to 160px
Screen shots
Before:
After:
Gif