Skip to content

Commit 096beaa

Browse files
fix(a11y): add id=main-content to marketing layout main (#94)
The global skip-link in src/routes/+layout.svelte targets #main-content, but the marketing layout <main> had no id, so the skip-link did nothing on marketing routes. The (admin) and (portal) layouts already set this id; this aligns the marketing layout, satisfying WCAG 2.4.1 (bypass-blocks). Closes #76 Co-authored-by: dobby-yivi-agent[bot] <275734547+dobby-yivi-agent[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent ec232da commit 096beaa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/routes/(marketing)/+layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
showRegister={data.marketingFlags.registration}
1212
auth={data.auth}
1313
/>
14-
<main>
14+
<main id="main-content">
1515
{@render children()}
1616
</main>
1717
<Footer />

0 commit comments

Comments
 (0)