mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
web/layout: get rid of svelte announcer
it reads over our own a11y labels, and there's no official way to disable it
This commit is contained in:
parent
70ba8f8b39
commit
f406e7355b
1 changed files with 6 additions and 0 deletions
|
@ -3,6 +3,8 @@
|
|||
import "@fontsource/ibm-plex-mono/400-italic.css";
|
||||
import "@fontsource/ibm-plex-mono/500.css";
|
||||
|
||||
import { beforeUpdate } from "svelte";
|
||||
|
||||
import { page } from "$app/stores";
|
||||
import { updated } from "$app/stores";
|
||||
import { browser } from "$app/environment";
|
||||
|
@ -33,6 +35,10 @@
|
|||
document.querySelector("[data-first-focus]");
|
||||
to_focus?.focus();
|
||||
});
|
||||
|
||||
beforeUpdate(() => {
|
||||
document.getElementById("svelte-announcer")?.remove();
|
||||
})
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
|
|
Loading…
Reference in a new issue