From f0a8668ba54d6561cd79fb1e936afd147c2e6796 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 2 Dec 2025 14:07:29 -0600 Subject: [PATCH] Forms#search: Use fieldset for date range elements The logical grouping of the date range search elements is now understood by assistive technologies via fieldset/legend (instead of div/p). Also, remove the 'group' role from the submit button container. This made no sense; there is no grouping of buttons, and no legend is needed. Closes: ADA-395 --- .idea/lost-and-found.iml | 117 ++++++++++++++++++++------- app/views/forms/search_form.html.erb | 19 ++--- 2 files changed, 97 insertions(+), 39 deletions(-) diff --git a/.idea/lost-and-found.iml b/.idea/lost-and-found.iml index 918ebd0..67d9c14 100644 --- a/.idea/lost-and-found.iml +++ b/.idea/lost-and-found.iml @@ -162,6 +162,7 @@ + @@ -186,76 +187,136 @@ diff --git a/app/views/forms/search_form.html.erb b/app/views/forms/search_form.html.erb index b756866..8c6fc74 100644 --- a/app/views/forms/search_form.html.erb +++ b/app/views/forms/search_form.html.erb @@ -21,21 +21,18 @@ <%= form.select(:location, location_options, include_blank: true) %> -
-

Search by date range:

+
+ Search by date range: + <%= form.label(:date_found, 'Start date:') %> + <%= form.date_field(:date_found) %> -
- <%= form.label(:date_found, 'Start date:') %> - <%= form.date_field(:date_found) %> - - <%= form.label(:date_found_end, 'End date:') %> - <%= form.date_field(:date_found_end, max: Date.current) %> -
-
+ <%= form.label(:date_found_end, 'End date:') %> + <%= form.date_field(:date_found_end, max: Date.current) %> +
-
+
<% end %>