mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-26 17:57:44 +02:00
feat(a11y): add skip-to-content links and ARIA labels to calendar, contacts, todo
- Add skip-to-content link ("Zum Inhalt springen") to all 3 app layouts
- Add id="main-content" to main content areas
- Add ariaLabel prop to shared PillNavigation component
- Set aria-label="Hauptnavigation" on nav elements in all 3 apps
- Add aria-label to icon-only nav toggle button in todo
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
217c48663b
commit
9fc237d9ed
4 changed files with 40 additions and 2 deletions
|
|
@ -278,6 +278,13 @@
|
|||
<SplitPaneContainer>
|
||||
<!-- Navigation Layout -->
|
||||
<div class="layout-container">
|
||||
<a
|
||||
href="#main-content"
|
||||
class="sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:z-[100] focus:rounded-lg focus:bg-primary focus:px-4 focus:py-2 focus:text-white"
|
||||
>
|
||||
Zum Inhalt springen
|
||||
</a>
|
||||
|
||||
<!-- UI Elements (hidden in immersive mode) -->
|
||||
{#if !contactsSettings.immersiveModeEnabled}
|
||||
<!-- Floating Pill Navigation (at bottom) -->
|
||||
|
|
@ -310,6 +317,7 @@
|
|||
profileHref="/profile"
|
||||
allAppsHref="/apps"
|
||||
onOpenInPanel={handleOpenInPanel}
|
||||
ariaLabel="Hauptnavigation"
|
||||
/>
|
||||
|
||||
<!-- Global Quick Input Bar -->
|
||||
|
|
@ -342,6 +350,7 @@
|
|||
|
||||
<!-- Main Content -->
|
||||
<main
|
||||
id="main-content"
|
||||
class="main-content bg-background"
|
||||
class:immersive={contactsSettings.immersiveModeEnabled}
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue