Skip to content

Commit 0eb4648

Browse files
authored
Merge pull request #496 from raifdmueller/fix/homepage-accessibility-492
fix(a11y): raise --color-text-secondary to gray-600 for WCAG AA contrast
2 parents 00aa614 + 18467bd commit 0eb4648

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

website/src/components/footer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export function renderFooter(version) {
8181
class="h-6 w-auto"
8282
loading="lazy"
8383
/>
84-
<span class="text-xs text-[var(--color-text-secondary)]">HMZE <span class="opacity-60">(DE)</span></span>
84+
<span class="text-xs text-[var(--color-text-secondary)]">HMZE (DE)</span>
8585
</a>
8686
<span class="text-gray-300 dark:text-gray-600">|</span>
8787
<a
@@ -99,7 +99,7 @@ export function renderFooter(version) {
9999
class="h-6 w-auto"
100100
loading="lazy"
101101
/>
102-
<span class="text-xs text-[var(--color-text-secondary)]">rabauer.dev <span class="opacity-60">(EN)</span></span>
102+
<span class="text-xs text-[var(--color-text-secondary)]">rabauer.dev (EN)</span>
103103
</a>
104104
</div>
105105
</div>

website/src/styles/main.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
--color-bg: #ffffff;
1111
--color-bg-secondary: #f3f4f6;
1212
--color-text: #1f2937;
13-
--color-text-secondary: #6b7280;
13+
/* gray-600, not gray-500: clears WCAG AA 4.5:1 on --color-bg-secondary */
14+
--color-text-secondary: #4b5563;
1415
--color-border: #e5e7eb;
1516
}
1617

0 commit comments

Comments
 (0)