Skip to content

Commit

Permalink
details padding and accessibility icon
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshull committed Jan 2, 2025
1 parent 7849f1e commit 20e6340
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
8 changes: 6 additions & 2 deletions lib/dotcom_web/components/trip_planner/itinerary_summary.ex
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ defmodule DotcomWeb.Components.TripPlanner.ItinerarySummary do
<% end %>
</div>
<div class="flex flex-wrap gap-1 items-center mb-3 text-sm text-grey-dark">
<div :if={@summary.accessible?} class="inline-flex items-center gap-0.5">
<.icon type="icon-svg" name="icon-accessible-small" class="h-3 w-3 mr-0.5" /> Accessible
<div class="inline-flex items-center gap-0.5">
<%= if @summary.accessible? do %>
<.icon type="icon-svg" name="icon-accessible-small" class="h-3 w-3 mr-0.5" /> Accessible
<% else %>
<.icon type="icon-svg" name="icon-not-accessible-small" class="h-3 w-3 mr-0.5" /> May not be accessible
<% end %>
<.icon name="circle" class="h-0.5 w-0.5 mx-1" />
</div>
<div class="inline-flex items-center gap-0.5">
Expand Down
4 changes: 2 additions & 2 deletions lib/dotcom_web/components/trip_planner/transit_leg.ex
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ defmodule DotcomWeb.Components.TripPlanner.TransitLeg do
</div>
<%= if Enum.count(@leg.mode.intermediate_stops) < 2 do %>
<div class="w-full my-3">
<div class="w-full py-5">
<.leg_summary leg={@leg} alerts={@alerts.route} />
<.leg_details leg={@leg} />
</div>
<% else %>
<details class="w-full my-3 group/stops">
<details class="w-full py-5 group/stops">
<summary class="flex items-start cursor-pointer">
<.leg_summary leg={@leg} alerts={@alerts.route} />
Expand Down
13 changes: 4 additions & 9 deletions priv/static/icon-svg/icon-not-accessible-small.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 20e6340

Please sign in to comment.