-
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
Support larger custom route renderers #1079
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.
The route colors in transitive are working for me! Looks good
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.
Should we keep calculating a settings-based route color as fallback?
@@ -700,10 +700,6 @@ export const findRoute = (params) => | |||
newRoute.patterns = routePatterns | |||
// TODO: avoid explicit behavior shift like this | |||
newRoute.v2 = true | |||
newRoute.color = getRouteColorBasedOnSettings( |
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 should keep this as fallback if a route color
is not provided in OTP, and for cases where we want to override route colors in config, I think.
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.
The reason it is removed here is that we instead do the override in every location where the color is used. This gives us more flexibility in how we use the color. Try it! a feed with no color still gets overriden
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 think my questions have been answered.
Description:
Adjusts color handling to be more consistent and allow for more situations.
LOOKING FOR FEEDBACK:
PR Checklist: