Use a button instead of a link to remove a marker

Using a button for interactive elements is better, as explained in
commit 5311daadf.

Since buttons with "type=button" do nothing by default, we no longer
need to call `preventDefault()` when clicking it.
This commit is contained in:
Javi Martín
2023-05-02 16:02:27 +02:00
parent 59ed975f81
commit 8b14522bf5
4 changed files with 12 additions and 12 deletions

View File

@@ -1,7 +1,8 @@
.map-location-remove-marker {
border-bottom: 1px dotted #cf2a0e;
border-radius: 0;
color: $delete;
display: inline-block;
cursor: pointer;
margin-bottom: $line-height;
margin-top: $line-height / 2;
@@ -10,7 +11,6 @@
&:focus {
border-bottom-style: solid;
color: #cf2a0e;
text-decoration: none;
}
}