forked from MapComplete/MapComplete
A11y: add labels to previously unlabeled buttons, fix order
This commit is contained in:
parent
736ab13ceb
commit
fdde0aaeb3
21 changed files with 287 additions and 86 deletions
21
src/Logic/ImageProviders/MapillaryIcon.svelte
Normal file
21
src/Logic/ImageProviders/MapillaryIcon.svelte
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<script lang="ts">
|
||||
import Mapillary from "../../assets/svg/Mapillary.svelte"
|
||||
import { ariaLabel } from "../../Utils/ariaLabel"
|
||||
import Translations from "../../UI/i18n/Translations"
|
||||
|
||||
/**
|
||||
* Accessible, linked mapillary icon
|
||||
*/
|
||||
export let url: string = undefined
|
||||
</script>
|
||||
|
||||
{#if url}
|
||||
<a href={url}
|
||||
use:ariaLabel={Translations.t.general.attribution.seeOnMapillary}
|
||||
target="_blank"
|
||||
rel="noopener nofollower" >
|
||||
<Mapillary />
|
||||
</a>
|
||||
{:else}
|
||||
<Mapillary />
|
||||
{/if}
|
||||
Loading…
Add table
Add a link
Reference in a new issue