Skip to content

Commit e9afb0f

Browse files
fix: aria label
1 parent 2ed33e9 commit e9afb0f

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

templates/website/astro/src/components/Article.astro

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
interface Props {
33
href: string;
4-
arialLabel: string;
4+
ariaLabel: string;
55
}
66
7-
const { href, arialLabel } = Astro.props;
7+
const { href, ariaLabel } = Astro.props;
88
---
99

1010
<a
1111
{href}
1212
rel="noreferrer noopener"
1313
target="_blank"
14-
aria-label={arialLabel}
14+
aria-label={ariaLabel}
1515
class="group flex flex-col py-3 px-4 border-black dark:border-lavender-blue-500 dark:hover:border-white border-[3px] rounded bg-white dark:bg-black dark:text-white transition-all shadow-[8px_8px_0px_rgba(0,0,0,1)] dark:shadow-[8px_8px_0px_#7888FF] dark:hover:shadow-[8px_8px_0px_#fff] hover:bg-lavender-blue-200 dark:hover:bg-black active:bg-lavender-blue-400 dark:active:bg-black active:shadow-none active:translate-x-[8px] active:translate-y-[8px]"
1616
>
1717
<h4

templates/website/astro/src/components/Hero.astro

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
interface Props {
33
href: string;
4-
arialLabel: string;
4+
ariaLabel: string;
55
}
66
7-
const { href, arialLabel } = Astro.props;
7+
const { href, ariaLabel } = Astro.props;
88
---
99

1010
<a
1111
{href}
1212
rel="noreferrer noopener"
1313
target="_blank"
14-
aria-label={arialLabel}
14+
aria-label={ariaLabel}
1515
class="col-span-2 text-center text-lg font-extrabold bg-lavender-blue-500 dark:bg-white text-white dark:text-black dark:hover:text-white py-3 px-4 border-black dark:border-lavender-blue-500 dark:hover:border-white border-[3px] rounded transition-all shadow-[8px_8px_0px_rgba(0,0,0,1)] dark:shadow-[8px_8px_0px_#7888FF] dark:hover:shadow-[8px_8px_0px_#fff] hover:bg-lavender-blue-400 dark:hover:bg-black active:bg-lavender-blue-600 dark:active:bg-black active:shadow-none active:translate-x-[8px] active:translate-y-[8px]"
1616
>
1717
<slot />

templates/website/astro/src/pages/index.astro

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import { SITE_TITLE, SITE_DESCRIPTION } from "../consts";
3434

3535
<Article
3636
href="https://juno.build/docs/guides/astro"
37-
aria-label="Open quickstart guides on Juno's website"
37+
ariaLabel="Open quickstart guides on Juno's website"
3838
>
3939
<Fragment slot="title">Quickstart</Fragment>
4040

@@ -43,7 +43,7 @@ import { SITE_TITLE, SITE_DESCRIPTION } from "../consts";
4343

4444
<Article
4545
href="https://juno.build/docs/category/build"
46-
aria-label="Open the list of features for building apps on Juno's website"
46+
ariaLabel="Open the list of features for building apps on Juno's website"
4747
>
4848
<Fragment slot="title">Documentation</Fragment>
4949

@@ -52,7 +52,7 @@ import { SITE_TITLE, SITE_DESCRIPTION } from "../consts";
5252

5353
<Article
5454
href="https://juno.build/docs/miscellaneous/github_actions"
55-
aria-label="Open the guide to setting up GitHub Actions for Juno"
55+
ariaLabel="Open the guide to setting up GitHub Actions for Juno"
5656
>
5757
<Fragment slot="title">Continuous Integration</Fragment>
5858

@@ -61,7 +61,7 @@ import { SITE_TITLE, SITE_DESCRIPTION } from "../consts";
6161

6262
<Article
6363
href="https://discord.gg/wHZ57Z2RAG"
64-
aria-label="Join Juno's Discord channel for questions or to share the fun"
64+
ariaLabel="Join Juno's Discord channel for questions or to share the fun"
6565
>
6666
<Fragment slot="title">Community</Fragment>
6767

0 commit comments

Comments
 (0)