A11y: improve flow with screenreader, some more refactoring to svelte, see #1181

This commit is contained in:
Pieter Vander Vennet 2023-12-13 02:16:53 +01:00
parent 40067e35d4
commit 48ac539272
15 changed files with 188 additions and 226 deletions

View file

@ -5,6 +5,7 @@
import { Translation } from "../i18n/Translation"
import WeblateLink from "./WeblateLink.svelte"
import { Store } from "../../Logic/UIEventSource"
import FromHtml from "./FromHtml.svelte"
export let t: Translation
export let cls: string = ""
@ -14,9 +15,9 @@
</script>
{#if txt}
{#if $txt}
<span class={cls}>
{$txt}
<FromHtml src={$txt}/>
<WeblateLink context={t.context} />
</span>
{/if}