Skip to content

Commit

Permalink
fix: added aria-label attribute for scroll button and bookmark (#775)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maczi01 authored Feb 27, 2024
1 parent 768d769 commit da97928
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/ArticlePreview/ArticlePreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ const ArticlePreview: NextPage<Props> = ({
}
bookmarkPost(id);
}}
aria-label={
bookmarked ? "Remove bookmark" : "Bookmark this post"
}
>
<BookmarkIcon
className={`w-6 h-6${
Expand Down
1 change: 1 addition & 0 deletions components/Hero/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export default function Hero() {
</h1>
<div className="mt-12 flex justify-center">
<button
aria-label="Scroll to call to action"
className="focus-style-rounded animate-bounce rounded-full border-2 bg-neutral-900 bg-opacity-60 p-4"
onClick={() => handleScroll("cta")}
>
Expand Down

0 comments on commit da97928

Please sign in to comment.