Skip to content

Commit a11d0c5

Browse files
committed
🎈 perf: improve accesibility
1 parent ebced0c commit a11d0c5

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

src/components/Footer/Footer.astro

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,15 @@ import CustomParagraph from '../shared/CustomParagraph.astro';
5050
<span>
5151
<CustomLink
5252
href="https://github.com/carlosjorger/carlosjorger.github.io"
53+
arialLabel="Github project link"
5354
>
5455
Published
5556
</CustomLink>
5657
in
57-
<CustomLink href="https://pages.github.com/">
58+
<CustomLink
59+
href="https://pages.github.com/"
60+
arialLabel="Github pages link"
61+
>
5862
Github Page
5963
</CustomLink>
6064
<span></span>

src/components/Header/Header.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import HamburgerMenuIcon from './HamburgerMenuIcon.astro';
1111
class="m-0 flex list-none flex-row justify-between p-0.5 max-sm:hidden [&>li]:self-center"
1212
>
1313
<li class="p-1">
14-
<Link href="#" arialLabel="Go to presentation">
14+
<Link href="#home" arialLabel="Go to presentation">
1515
<IconElement iconType="house" height="h-6" width="w-7" />
1616
</Link>
1717
</li>
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
---
22
export interface Props {
33
href: string;
4+
arialLabel: string;
45
}
5-
const { href = '' } = Astro.props;
6+
const { href = '', arialLabel } = Astro.props;
67
---
78

89
<a
910
class="bg-gradient-to-r from-teal-300 to-teal-300 bg-[length:0%_15%] bg-[0%_100%] bg-no-repeat text-teal-300 no-underline transition-all duration-300 ease-out visited:text-teal-300 hover:bg-[length:100%_15%] hover:ease-in-out active:bg-transparent"
1011
href={href}
12+
aria-label={arialLabel}
1113
>
1214
<slot />
1315
</a>

src/env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
/// <reference path="../.astro/types.d.ts" />
12
/// <reference types="astro/client" />

0 commit comments

Comments
 (0)