Fixes error in seeded navigation link svg icon (#13683)
I was seeing during testing this console error: "Error: <path> attribute d: Expected path command, "…0-4 2 2 0 000 4z\\". Removing the \" and leaving just " seems like it corrected that (the error stops showing, the icon is unchanged since the prior path was drawn before the error raised).
This commit is contained in:
parent
d7f9a18199
commit
8678cd5ae4
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ end
|
|||
seeder.create_if_doesnt_exist(NavigationLink, "url", "/contact") do
|
||||
icon = '<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">'\
|
||||
'<path d="M12 1l9.5 5.5v11L12 23l-9.5-5.5v-11L12 1zm0 2.311L4.5 7.653v8.694l7.5 4.342'\
|
||||
'7.5-4.342V7.653L12 3.311zM12 16a4 4 0 110-8 4 4 0 010 8zm0-2a2 2 0 100-4 2 2 0 000 4z\"/>'\
|
||||
'7.5-4.342V7.653L12 3.311zM12 16a4 4 0 110-8 4 4 0 010 8zm0-2a2 2 0 100-4 2 2 0 000 4z"/>'\
|
||||
'</svg>'
|
||||
6.times do |i|
|
||||
NavigationLink.create!(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue