]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/leaflet.share.js
Changed close buttons of banner and other leaflet sidebars to Bootstrap
[rails.git] / app / assets / javascripts / leaflet.share.js
index db983939016de802ee8cbf61d21e42ed9281eb52..0f79e34e255a79792c6cf40e4aad26a7b2c9d5ee 100644 (file)
@@ -25,9 +25,8 @@ L.OSM.share = 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>")