Skip to content

Commit 6a151ce

Browse files
committed
Fix colors.
1 parent c49db80 commit 6a151ce

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

app/component/itinerary/LegInfo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default function LegInfo({
5656
className={`line ${mode}`}
5757
mode={mode}
5858
alertSeverityLevel={alertSeverityLevel}
59-
color={leg.route.color ? `#${leg.route.color}` : 'currentColor'}
59+
color={leg.route.color ? `#${leg.route.color}` : undefined}
6060
text={leg.route && leg.route.shortName}
6161
realtime={false}
6262
withBar
@@ -119,7 +119,7 @@ export default function LegInfo({
119119
<RouteNumber
120120
mode={mode}
121121
alertSeverityLevel={alertSeverityLevel}
122-
color={leg.route?.color ? `#${leg.route.color}` : 'currentColor'}
122+
color={leg.route?.color ? `#${leg.route.color}` : undefined}
123123
text={leg.route.shortName || leg.trip?.tripShortName}
124124
realtime={false}
125125
withBar

app/component/itinerary/TransitLeg.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class TransitLeg extends React.Component {
190190
return (
191191
<IntermediateLeg
192192
placesCount={places.length}
193-
color={leg.route?.color ? `#${leg.route.color}` : 'currentColor'}
193+
color={leg.route?.color ? `#${leg.route.color}` : undefined}
194194
key={place.stop.gtfsId}
195195
gtfsId={place.stop.gtfsId}
196196
mode={mode}
@@ -495,7 +495,7 @@ class TransitLeg extends React.Component {
495495
<ItineraryCircleLine
496496
index={index}
497497
modeClassName={modeClassName}
498-
color={leg.route?.color ? `#${leg.route.color}` : 'currentColor'}
498+
color={leg.route?.color ? `#${leg.route.color}` : undefined}
499499
renderBottomMarker={
500500
!this.state.showIntermediateStops ||
501501
(leg.intermediatePlaces.length === 0 && interliningLegs.length < 1)
@@ -506,7 +506,7 @@ class TransitLeg extends React.Component {
506506
/>
507507
<div
508508
style={{
509-
color: leg.route?.color ? `#${leg.route.color}` : 'currentColor',
509+
color: leg.route?.color ? `#${leg.route.color}` : undefined,
510510
}}
511511
className={cx(
512512
'small-9 columns itinerary-instruction-column',

app/component/map/route/PopupHeader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default function PopupHeader({
4343
card={card}
4444
mode={mode}
4545
text={routeLine}
46-
color={route.color ? `#${route.color}` : 'currentColor'}
46+
color={route.color ? `#${route.color}` : undefined}
4747
/>
4848
{startTimeEl}
4949
</h1>

0 commit comments

Comments
 (0)