feat: enhance accessibility with skip to main content button and improve navigation handling

🔧 fix: update navigation href resolution to include localized paths

🆕 feat: add new FeatureIcon component for feature boxes

🎨 style: improve styling for prose elements in richtext blocks

🛠️ refactor: streamline medialib image loading and caching logic

📦 chore: update mock data handling to support new medialib entries

🔄 chore: synchronize i18n initialization and locale management

📝 docs: update video tour descriptions to reflect recent changes
This commit is contained in:
2026-05-12 13:55:32 +00:00
parent 8fb26fdeba
commit e84b87ed16
41 changed files with 1523 additions and 338 deletions
+16
View File
@@ -36,4 +36,20 @@ test.describe("Home Page", () => {
expect(page.url()).toContain("/en")
}
})
test("should allow skipping directly to main content", async ({ page }) => {
await page.goto("/de/")
await waitForSpaReady(page)
await page.keyboard.press("Tab")
const skipLink = page.getByRole("button", { name: "Zum Hauptinhalt springen" })
await expect(skipLink).toBeFocused()
await page.keyboard.press("Enter")
const mainContent = page.locator("main#main-content")
await expect(mainContent).toBeFocused()
await expect(page).toHaveURL(/#main-content$/)
})
})