]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/leaflet.key.js
Changed close buttons of banner and other leaflet sidebars to Bootstrap
[rails.git] / app / assets / javascripts / leaflet.key.js
index e839171ab0937bcede9d8ef3795a552eb5b71842..3e8e66854a466747bca9f323a69233e846996e77 100644 (file)
@@ -19,9 +19,8 @@ L.OSM.key = function (options) {
       .attr("class", "sidebar_heading")
       .appendTo($ui)
       .append(
-        $("<span>")
-          .text(I18n.t("javascripts.close"))
-          .attr("class", "icon close")
+        $("<button type='button' class='btn-close float-end mt-1'>")
+          .attr("aria-label",I18n.t("javascripts.close"))
           .bind("click", toggle))
       .append(
         $("<h4>")