Extract custom dropdown to reusable component, fix styles, match zeplin specs, use it in Sim tab #35
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
https://www.pivotaltracker.com/story/show/188162567
@kswenson, tagging you here, as Joe is not available anymore and Doug is out for some time.
This PR splits the location-picker into the location-picker and a reusable Dropdown component. Then, I used this Dropdown component in the simulation tab. There are also multiple fixes to the dropdown style that affect the original location picker (sizing, fonts, padding, hover and active states, etc.). Hopefully, it's now fully matching the Zeplin specs. I also fixed some bugs, such as the issue where the user sometimes had to select an option twice. I think the only thing missing is the arrow on the right side, which I'll add tomorrow while converting 'My Locations' to a new component.
It was more work than I hoped for, and I'm not sure if a custom dropdown implementation with text search is a good idea long-term (but it was already there), but given that the styling is so specific, maybe it also wouldn't be easy to work with an external library.
I also moved the SCSS files next to the components to match our typical pattern.