Skip to content

Commit

Permalink
fix missing bus line (#2324)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshull authored Jan 13, 2025
1 parent 3c32654 commit 3be8615
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/dotcom_web/components/trip_planner/transit_leg.ex
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,15 @@ defmodule DotcomWeb.Components.TripPlanner.TransitLeg do
|> Route.to_naive()
|> Route.icon_atom()
|> CSSHelpers.atom_to_class()
|> then(&"bg-#{&1}")
|> route_background_class()
end

defp route_background_class("bus") do
"bg-brand-bus"
end

defp route_background_class(route) do
"bg-#{route}"
end

defp transit_leg_icon(assigns) do
Expand Down

0 comments on commit 3be8615

Please sign in to comment.