forked from MapComplete/MapComplete
A11y: improve flow with screenreader, some more refactoring to svelte, see #1181
This commit is contained in:
parent
40067e35d4
commit
48ac539272
15 changed files with 188 additions and 226 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue