Fix: chromium browsers don't handle spaces in tel:-links well

This commit is contained in:
Pieter Vander Vennet 2024-08-28 12:02:04 +02:00
parent b79835074f
commit 4168ef01e3
5 changed files with 315 additions and 279 deletions

View file

@ -1,6 +1,10 @@
<script lang="ts">
import { Utils } from "../../Utils"
export let text: string
export let href: string
export let classnames: string = undefined
export let download: string = undefined
export let ariaLabel: string = undefined
@ -9,7 +13,7 @@
</script>
<a
{href}
href={Utils.prepareHref(href)}
aria-label={ariaLabel}
title={ariaLabel}
target={newTab ? "_blank" : undefined}