From 3be8615baee5da20fa2d4d8d5e6d63b0cf2f0c53 Mon Sep 17 00:00:00 2001 From: Anthony Shull Date: Mon, 13 Jan 2025 09:53:48 -0600 Subject: [PATCH] fix missing bus line (#2324) --- lib/dotcom_web/components/trip_planner/transit_leg.ex | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/dotcom_web/components/trip_planner/transit_leg.ex b/lib/dotcom_web/components/trip_planner/transit_leg.ex index a9ecaa9bd2..a2641aa5a2 100644 --- a/lib/dotcom_web/components/trip_planner/transit_leg.ex +++ b/lib/dotcom_web/components/trip_planner/transit_leg.ex @@ -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