Skip to content

Commit

Permalink
fix: improve read-more link a11y
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprobst committed Apr 6, 2024
1 parent d793c23 commit 35ac76e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/curriculum-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export async function CurriculumCard(props: CurriculumCardProps) {
</div>
<div className="justify-self-end">
<AppLink
aria-label={t("read", { title: curriculum.title })}
className="text-sm underline underline-offset-4 hover:no-underline focus-visible:no-underline"
href={href}
>
Expand Down
1 change: 1 addition & 0 deletions components/resource-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export async function ResourceCard(props: ResourceCardProps) {
</div>
<div className="justify-self-end">
<AppLink
aria-label={t("read", { title: resource.title })}
className="text-sm underline underline-offset-4 hover:no-underline focus-visible:no-underline"
href={href}
>
Expand Down
2 changes: 2 additions & 0 deletions messages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"CurriculumCard": {
"edited-by": "Zusammengestellt von",
"published-on": "Veröffentlicht am",
"read": "{title} lesen",
"read-more": "Weiterlesen",
"tagged-with": "Getagged mit"
},
Expand Down Expand Up @@ -95,6 +96,7 @@
},
"ResourceCard": {
"published-on": "Veröffentlicht am",
"read": "{title} lesen",
"read-more": "Weiterlesen",
"tagged-with": "Getagged mit",
"written-by": "Geschrieben von"
Expand Down
2 changes: 2 additions & 0 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"CurriculumCard": {
"edited-by": "Edited by",
"published-on": "Published on",
"read": "Read {title}",
"read-more": "Read more",
"tagged-with": "Tagged with"
},
Expand Down Expand Up @@ -95,6 +96,7 @@
},
"ResourceCard": {
"published-on": "Published on",
"read": "Read {title}",
"read-more": "Read more",
"tagged-with": "Tagged with",
"written-by": "Written by"
Expand Down

0 comments on commit 35ac76e

Please sign in to comment.