Skip to content

Commit

Permalink
Add title attribute to location button
Browse files Browse the repository at this point in the history
So that screen readers can read it

Also so that there is an on:hover message

84
  • Loading branch information
komali2 committed Mar 20, 2021
1 parent 6a227be commit e7020f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</div>

<div class="ol-fit-location ol-unselectable ol-control" @click="zoomToGeolocation" data-label="map-locate">
<button>
<button title="定位">
<img src="/images/locate.svg" alt="locate">
</button>
</div>
Expand Down

0 comments on commit e7020f7

Please sign in to comment.