Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/src/components/CustomLogo.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const lightLogoUrl = `data:image/svg+xml;base64,${Buffer.from(lightLogoSvg).toSt
const initialLogoUrl = darkLogoUrl;
---

<a href={homeUrl} class="site-title">
<img src={initialLogoUrl} alt="GitHub Agentic Workflows" class="theme-logo" width="24" height="24" data-dark-src={darkLogoUrl} data-light-src={lightLogoUrl} />
<a href={homeUrl} class="site-title" aria-label="GitHub Agentic Workflows home">
<img src={initialLogoUrl} alt="" class="theme-logo" width="24" height="24" data-dark-src={darkLogoUrl} data-light-src={lightLogoUrl} />
<span>GitHub Agentic Workflows</span>
</a>

Expand Down
9 changes: 9 additions & 0 deletions docs/tests/site-title-accessibility.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { expect, test } from "@playwright/test";

test("mobile home logo link has an accessible name", async ({ page }) => {
await page.setViewportSize({ width: 390, height: 844 });
await page.goto("/gh-aw/");
await page.waitForLoadState("networkidle");

await expect(page.locator("a.site-title").first()).toHaveAccessibleName("GitHub Agentic Workflows home");
});
Loading