<%= t "site.index.js_1" %>
diff --git a/app/views/site/fixthemap.html.erb b/app/views/site/fixthemap.html.erb
index 9d9ef9232..798a952d4 100644
--- a/app/views/site/fixthemap.html.erb
+++ b/app/views/site/fixthemap.html.erb
@@ -22,7 +22,16 @@
<%= t "site.welcome.add_a_note.title" %>
<%= t "site.welcome.add_a_note.para_1" %>
-
<%= t ".how_to_help.add_a_note.instructions_1_html", :note_icon => tag.a(:class => "icon note bg-dark rounded-1") %>
+
<%= t(
+ ".how_to_help.add_a_note.instructions_1_html",
+ :note_icon => link_to(
+ tag.svg(:width => "20", :height => "20", :fill => "currentColor", :class => "align-top") do
+ tag.path(:d => "M17 12H15v2H13v2h2v2h2V16h2V14H17V12ZM3 12H6l2 3 2-3h3l1-1V4L13 3H3L2 4v7Z")
+ end,
+ new_note_path,
+ :class => "new-note"
+ )
+ ) %>
diff --git a/app/views/site/welcome.html.erb b/app/views/site/welcome.html.erb
index 33c9a7e24..8c073b41f 100644
--- a/app/views/site/welcome.html.erb
+++ b/app/views/site/welcome.html.erb
@@ -88,6 +88,11 @@
<%= t ".add_a_note.title" %>
<%= t ".add_a_note.para_1" %>
-
<%= t ".add_a_note.para_2_html", :map_link => link_to(t(".add_a_note.the_map"), root_path),
- :note_icon => tag.span(:class => "icon note bg-dark rounded-1") %>
+
<%= t(
+ ".add_a_note.para_2_html",
+ :map_link => link_to(t(".add_a_note.the_map"), root_path),
+ :note_icon => tag.svg(:width => "20", :height => "20", :fill => "currentColor", :class => "align-top") do
+ tag.path(:d => "M17 12H15v2H13v2h2v2h2V16h2V14H17V12ZM3 12H6l2 3 2-3h3l1-1V4L13 3H3L2 4v7Z")
+ end
+ ) %>
diff --git a/test/system/index_test.rb b/test/system/index_test.rb
index 8bee528d3..d30b928df 100644
--- a/test/system/index_test.rb
+++ b/test/system/index_test.rb
@@ -5,16 +5,16 @@ class IndexTest < ApplicationSystemTestCase
node = create(:node)
visit node_path(node)
assert_selector "#content.overlay-right-sidebar"
- find(".icon.share").click
+ find(".control-share a").click
assert_no_selector "#content.overlay-right-sidebar"
- find(".icon.share").click
+ find(".control-share a").click
assert_selector "#content.overlay-right-sidebar"
end
test "should add an overlay on close" do
node = create(:node)
visit node_path(node)
- find(".icon.share").click
+ find(".control-share a").click
assert_no_selector "#content.overlay-right-sidebar"
find("#map-ui .btn-close").click
assert_selector "#content.overlay-right-sidebar"
@@ -23,16 +23,16 @@ class IndexTest < ApplicationSystemTestCase
test "should not add overlay when not closing right menu popup" do
node = create(:node)
visit node_path(node)
- find(".icon.share").click
+ find(".control-share a").click
- find(".icon.key").click
+ find(".control-key a").click
assert_no_selector "#content.overlay-right-sidebar"
- find(".icon.layers").click
+ find(".control-layers a").click
assert_no_selector "#content.overlay-right-sidebar"
- find(".icon.key").click
+ find(".control-key a").click
assert_no_selector "#content.overlay-right-sidebar"
- find(".icon.key").click
+ find(".control-key a").click
assert_selector "#content.overlay-right-sidebar"
end