]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/application/_sidebar_header.html.erb
Add aria-label to close buttons
[rails.git] / app / views / application / _sidebar_header.html.erb
index 83b1ae1c5415c9a3ff22ccb7ad3472f311c68007..88a1fff4ab631fb5d915185fb4a3b51e6ca3ac4e 100644 (file)
@@ -1,10 +1,6 @@
 <div class="d-flex w-100">
-  <div class="flex-grow-1 text-break">
-    <h2><%= title %></h2>
-  </div>
+  <h2 class="flex-grow-1 text-break"><%= title %></h2>
   <div>
-    <a class="geolink" href="<%= root_path %>">
-      <button type="button" class="btn-close float-end mt-1"></button>
-    </a>
+    <button type="button" class="btn-close" aria-label="<%= t("javascripts.close") %>"></button>
   </div>
 </div>