diff --git a/app/views/_tailwind/applications/_address_search_form.html.erb b/app/views/_tailwind/applications/_address_search_form.html.erb
index c02f2e11d..a4fae904e 100644
--- a/app/views/_tailwind/applications/_address_search_form.html.erb
+++ b/app/views/_tailwind/applications/_address_search_form.html.erb
@@ -2,10 +2,16 @@
<%# TODO: Show errors if necessary %>
<%# Right now the styling is quite different from the other forms %>
- <%= form_with url: address_applications_path, method: :get, class: "space-y-4 sm:space-y-8 flex flex-col items-center" do |form| %>
- <%= form.label :q, "Enter a street address", class: "font-semibold text-3xl sm:text-4xl text-white" %>
+ <%= form_with url: address_applications_path, method: :get, class: "gap-4 flex flex-col items-center" do |form| %>
+ <%# Not using a heading here so that we don't mess up the heading order on different pages. %>
+ <%# TODO: There's probably something simpler and more sensible we should do here %>
+
Application Search
+
+ Find me applications within <%= meters_in_words(Alert::DEFAULT_RADIUS) %> of:
+
+ <%= form.label :q, "Street address", class: "sr-only" %>
<%# TODO: Re-enable autofocus:true below after finished testing with livereload %>
-
+
<%= form.text_field :q,
value: q,
placeholder: "e.g. 1 Sowerby St, Goulburn, NSW 2580",
@@ -25,8 +31,10 @@
<% end %>
- <%= render Tailwind::ButtonComponent.new(tag: :button, size: "2xl", type: :primary) do %>
- Search for applications
- <% end %>
+
+ <%= render Tailwind::ButtonComponent.new(tag: :button, size: "2xl", type: :primary) do %>
+
Search
+ <% end %>
+
<% end %>
diff --git a/spec/features/search_for_applications_spec.rb b/spec/features/search_for_applications_spec.rb
index bac0205fe..6cb54f91f 100644
--- a/spec/features/search_for_applications_spec.rb
+++ b/spec/features/search_for_applications_spec.rb
@@ -44,7 +44,7 @@
sign_in create(:confirmed_user, tailwind_theme: true)
visit root_path
- fill_in "Enter a street address", with: "24 Bruce Road, Glenbrook"
+ fill_in "Street address", with: "24 Bruce Road, Glenbrook"
click_button "Search"
expect(page).to have_content "Search results"
@@ -60,7 +60,7 @@
sign_in create(:confirmed_user, tailwind_theme: true)
visit root_path
- fill_in "Enter a street address", with: "24 Bruce Road, Glenbrook"
+ fill_in "Street address", with: "24 Bruce Road, Glenbrook"
click_button "Search"
end