]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/directions.js
Add aria-label to close buttons
[rails.git] / app / assets / javascripts / index / directions.js
index 500610e26dfc9c4f3ed3529614f60c54a05a0757..75c647802b7a4ff42f3143a0e93f3ae3f535fdb3 100644 (file)
@@ -265,7 +265,8 @@ OSM.Directions = function (map) {
       }
 
       var turnByTurnTable = $("<table class='mb-3'>");
-      var directionsCloseButton = $("<button type='button' class='btn-close'>");
+      var directionsCloseButton = $("<button type='button' class='btn-close'>")
+        .attr("aria-label", I18n.t("javascripts.close"));
 
       $("#sidebar_content")
         .empty()