Skip to content

Commit 2074f33

Browse files
feat: improve accessibility of site landmarks
1 parent 2e60e9f commit 2074f33

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.Jules/palette.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Palette's Journal
2+
3+
## 2024-05-22 - Accessibility in Code Blocks
4+
**Learning:** Code blocks often lack proper labeling for screen readers, making them just "blocks of text".
5+
**Action:** Ensure code blocks or their containers have `aria-label` or `title` attributes where appropriate, or use `role="region"` with a label if they are scrollable.
6+
7+
## 2024-05-22 - Contrast in Documentation
8+
**Learning:** Documentation often uses subtle colors for syntax highlighting which might fail contrast checks.
9+
**Action:** Regularly check contrast ratios for syntax highlighting themes.

docs/src/components/Header/Header.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import ThemeToggleButton from "./ThemeToggleButton";
77

88
<header>
99
<SkipToContent />
10-
<nav class="nav-wrapper" title="Top Navigation">
10+
<nav class="nav-wrapper" aria-label="Top Navigation">
1111
<div class="menu-toggle">
1212
<SidebarToggle client:idle />
1313
</div>

docs/src/layouts/MainLayout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const currentPage = Astro.url.pathname;
118118
<body>
119119
<Header />
120120
<main class="layout">
121-
<aside id="grid-left" class="grid-sidebar" title="Site Navigation">
121+
<aside id="grid-left" class="grid-sidebar" aria-label="Site Navigation">
122122
<LeftSidebar currentPage={currentPage} />
123123
</aside>
124124
<div id="grid-main">

0 commit comments

Comments
 (0)