Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Live.TripPlanner): Add switch origin/destination button #2317

Merged
merged 10 commits into from
Jan 9, 2025
Prev Previous commit
format
  • Loading branch information
thecristen committed Jan 9, 2025
commit 0127b9573c166c6b97430a72dc68ca9b679d4240
12 changes: 10 additions & 2 deletions lib/dotcom_web/components/trip_planner/input_form.ex
Original file line number Diff line number Diff line change
@@ -32,7 +32,11 @@ defmodule DotcomWeb.Components.TripPlanner.InputForm do
phx-change="input_form_change"
phx-submit="input_form_submit"
>
<.location_search_box name="trip-planner-input-form--from" field={f[:from]} placeholder="Enter an origin location" />
<.location_search_box
name="trip-planner-input-form--from"
field={f[:from]}
placeholder="Enter an origin location"
/>
<div class="-mb-[20px] md:-mt-md md:mb-0 self-end md:self-auto">
<div class="hidden md:block md:py-sm md:mb-[10px]">
&nbsp; <%!-- helps align the swap button on desktop--%>
@@ -46,7 +50,11 @@ defmodule DotcomWeb.Components.TripPlanner.InputForm do
<.icon class="h-6 w-6 rotate-90 md:rotate-0" name="right-left" />
</button>
</div>
<.location_search_box name="trip-planner-input-form--to" field={f[:to]} placeholder="Enter a destination location" />
<.location_search_box
name="trip-planner-input-form--to"
field={f[:to]}
placeholder="Enter a destination location"
/>
<fieldset class="mb-sm">
<legend class="text-charcoal-40 m-0 py-sm">When</legend>
<.input_group
Loading