diff --git a/__tests__/components/viewers/__snapshots__/stop-viewer.js.snap b/__tests__/components/viewers/__snapshots__/stop-viewer.js.snap index e93d8f57d..a42e0b1ab 100644 --- a/__tests__/components/viewers/__snapshots__/stop-viewer.js.snap +++ b/__tests__/components/viewers/__snapshots__/stop-viewer.js.snap @@ -1437,7 +1437,7 @@ exports[`components > viewers > stop viewer should render countdown times after title="20" > viewers > stop viewer should render countdown times for st title="20" > viewers > stop viewer should render times after midnight w title="20" > viewers > stop viewer should render with OTP transit index title="36" > viewers > stop viewer should render with TriMet transit in title="20" > getRouteOperator( { agencyId: newRoute?.agency?.id, - id: newRoute?.route?.id + id: newRoute?.id }, getState().otp.config.transitOperators ), - { color: newRoute?.route?.color, mode: newRoute.mode } + { color: newRoute?.color, mode: newRoute.mode } ).split('#')?.[1] newRoute.patterns = routePatterns @@ -779,12 +779,12 @@ export function findRoutes() { getRouteOperator( { agencyId: route?.agency?.id, - id: route?.route?.id + id: route?.id }, config.transitOperators ), { - color: route?.route?.color, + color: route?.color, mode: route.mode } ).split('#')?.[1] diff --git a/lib/components/narrative/metro/default-route-renderer.tsx b/lib/components/narrative/metro/default-route-renderer.tsx index 816348a98..90b93a34f 100644 --- a/lib/components/narrative/metro/default-route-renderer.tsx +++ b/lib/components/narrative/metro/default-route-renderer.tsx @@ -7,7 +7,6 @@ const Block = styled.span<{ color: string; isOnColoredBackground?: boolean }>` border-radius: 5px; border-top: 5px solid #${(props) => props.color}; display: inline-block; - margin-top: -2px; padding: 3px 7px; padding-left: 7px !important; /* TODO: this does not scale well to alternate zoom levels/text sizes */ padding-right: 7px !important; diff --git a/lib/util/accessibility-routing.js b/lib/util/accessibility-routing.js index 5dd13690e..cadd30cfc 100644 --- a/lib/util/accessibility-routing.js +++ b/lib/util/accessibility-routing.js @@ -3,7 +3,8 @@ */ export const itineraryHasAccessibilityScore = (itinerary) => { return ( - // If accessibility score is 0, we still want to return true + // If accessibility score is 0, we still want to return true so use the -1 to + // make sure all scores are returned even if they're 0. itinerary.accessibilityScore !== null && itinerary.accessibilityScore > -1 ) }