diff --git a/app/views/goals/index.html.erb b/app/views/goals/index.html.erb index 8d2b8c9c8..db53a2fb6 100644 --- a/app/views/goals/index.html.erb +++ b/app/views/goals/index.html.erb @@ -108,18 +108,15 @@ <% if @show_search %>
-
- " - placeholder="<%= t(".search.placeholder") %>" - class="block w-full border border-secondary rounded-md py-2.5 pl-10 pr-3 bg-container focus:outline-none focus:ring-2 focus:ring-alpha-black-100 sm:text-sm"> -
- <%= icon "search", class: "text-secondary" %> -
-
+ <%= render DS::SearchInput.new( + aria_label: t(".search.aria_label"), + placeholder: t(".search.placeholder"), + class: "flex-1 min-w-[200px]", + data: { + goals_filter_target: "input", + action: "input->goals-filter#filter" + } + ) %>
<% %w[all on_track behind no_target_date paused completed].each do |status| %> <% active = status == "all" %>