aria: improve semantics

This commit is contained in:
James Xylight committed 2025-08-23 21:58:41 -07:00
1 parent ff1c8f50b2
commit 0c33480a84
19 files changed
+175 -172

No files matched your search

@@ -1,4 +1,6 @@
<script lang="ts">
import { t } from '$lib/i18n/translations'
const sizes = {
sm: 'text-2xl',
md: 'text-3xl',
@@ -25,7 +27,7 @@
}: Props = $props()
</script>
<div
<header
class={[
pageHeader &&
`w-[calc(100%+1.5rem)] sm:w-[calc(100%+3rem)]
@@ -33,6 +35,7 @@
border-b border-slate-200 dark:border-zinc-900 margin z-0`,
]}
{style}
aria-label={$t('aria.element.pageHeader')}
>
<h1
class={[sizes[size], 'flex gap-2 w-full tracking-tight font-medium', clazz]}
@@ -44,4 +47,4 @@
{@render extended?.()}
</div>
{/if}
</div>
</header>