From c2af5d8f59fd9ba4782f8715fe1f3f169a00cf7f Mon Sep 17 00:00:00 2001 From: Jacob Herrington Date: Wed, 24 Jun 2020 06:28:03 -0500 Subject: [PATCH] Fix accessiblity warnings on Listings page (#8841) This should fix ~60 axe warnings on this page. This commit also removes some markup that is being overwritten by Preact. --- app/views/listings/index.html.erb | 31 ++++++++++--------------------- 1 file changed, 10 insertions(+), 21 deletions(-) diff --git a/app/views/listings/index.html.erb b/app/views/listings/index.html.erb index dfedbb633..f37dcef08 100644 --- a/app/views/listings/index.html.erb +++ b/app/views/listings/index.html.erb @@ -26,26 +26,15 @@ <% end %> -
-
- data-displayedlisting="<%= @displayed_listing_json %> " - <% end %>> - -
-
- data-no-instant=" true ">all - <% categories_for_display.each do |cat| %> - data-no-instant="true"><%= cat[:name] %> - <% end %> - Create a Listing - <% if @displayed_listing %> - - <% end %> -
-
-
+
+

Listings

+
+ data-displayedlisting="<%= @displayed_listing_json %> " + <% end %>> +
+
<%= javascript_packs_with_chunks_tag "listings", defer: true %>