Skip to content

Commit

Permalink
fix(TripPlanner): handle Green Line routes to show route colors
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed Dec 11, 2024
1 parent fe2ebb9 commit f244770
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/dotcom_web/components/trip_planner/transit_leg.ex
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ defmodule DotcomWeb.Components.TripPlanner.TransitLeg do

defp leg_line_class(%Route{} = route) do
route
|> Routes.Route.icon_atom()
|> Route.to_naive()
|> Route.icon_atom()
|> CSSHelpers.atom_to_class()
|> then(&"border-#{&1}")
end
Expand Down

0 comments on commit f244770

Please sign in to comment.