-
Notifications
You must be signed in to change notification settings - Fork 53
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
Add building blocks dropdown #1251
Conversation
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.
Looking really good! The css rules are being applied globally, but once those are fixed this should be good to go.
const PatternSelectDropdown = styled(Dropdown)` | ||
span, | ||
span.caret { | ||
color: #333; |
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.
Nice!
I noticed this too.... I kinda like it with the metro, and in the route viewer? But it does look a little weird with the old itinerary. |
@daniel-heppner-ibigroup @amy-corson-ibigroup I think the border was added by accident tbh. I think it looks great in the route viewer. I will remove the border on the itinerary panel to pass the percy tests. |
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.
We're repeating these a lot:
line-height: 20px;
padding: 3px 7px;
span.caret {
margin-left: 2px;
}
IF we think this is what the default dropdown should be, let's go ahead and fix it in building-blocks. But I actually think the new dropdown looks nice and is an improvement! Interested in @daniel-heppner-ibigroup opinion on this too, if we prefer to match the percy tests exactly, that's totally fine. But right now we're setting those styles in one place and immediately overriding them in another.
@@ -149,12 +166,11 @@ class RouteDetails extends Component<Props> { | |||
<HeadsignSelectLabel htmlFor="headsign-selector-label"> | |||
<FormattedMessage id="components.RouteDetails.stopsTo" /> | |||
</HeadsignSelectLabel> | |||
<SortResultsDropdown | |||
<PatternSelectDropdown |
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.
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.
This is the only place I really had a problem with the way the new styling looks. If we can get this vertically centered then I'm happy to approve the Percy diff
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.
Take a look a 78d52eb. This addresses @amy-corson-ibigroup and @daniel-heppner-ibigroup suggestions!
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.
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.
added here! c51ffba
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.
Looks great! Thanks so much for all the changes
@@ -149,12 +166,11 @@ class RouteDetails extends Component<Props> { | |||
<HeadsignSelectLabel htmlFor="headsign-selector-label"> | |||
<FormattedMessage id="components.RouteDetails.stopsTo" /> | |||
</HeadsignSelectLabel> | |||
<SortResultsDropdown | |||
<PatternSelectDropdown |
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.
@daniel-heppner-ibigroup I think the Percy diff is good to be approved. Let me know if there are any more questions! |
Looks great! Thank you for your hard work here @josh-willis-arcadis |
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.
Nice work!
Implements new building block dropdown component.
Addl discussion at #1241
PR Checklist: