Make map location HTML class names consistent

We were using `map_location` in one place and
`location-map-remove-marker` in another one. We usually use dashes in
HTML class names, we don't say "location map" anywhere else.
This commit is contained in:
Javi Martín
2023-05-02 15:47:14 +02:00
parent f4ef6412b6
commit a145fdb8a8
6 changed files with 40 additions and 40 deletions

View File

@@ -1,4 +1,4 @@
<%= tag.div(id: dom_id(map_location), class: "map_location map", data: data) %>
<%= tag.div(id: dom_id(map_location), class: "map-location map", data: data) %>
<% if editable? %>
<%= remove_marker %>

View File

@@ -41,7 +41,7 @@ class Shared::MapLocationComponent < ApplicationComponent
tag.div class: "margin-bottom" do
link_to remove_marker_label, "#",
id: remove_marker_link_id,
class: "location-map-remove-marker"
class: "map-location-remove-marker"
end
end