Skip to content

Commit

Permalink
Fix aria-labels missing onClick elements
Browse files Browse the repository at this point in the history
  • Loading branch information
ohrie committed Nov 23, 2023
1 parent 9e2eb5e commit 9d146be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/Layout/ScrollTopLink/ScrollTopLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const ScrollTopLink: React.FC = () => {
type="button"
onClick={() => window.scrollTo(0, 0)}
className="mt-10 flex no-underline"
aria-label="Zum Seitenanfang springen"
>
<ArrowUpCircleIcon className="fixed bottom-16 right-8 z-40 w-14 rounded-full bg-white text-rs8-pink hover:text-rs8-pink" />
</button>
Expand Down
6 changes: 5 additions & 1 deletion src/components/PageRoute/Lightbox/Lightbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ export const Lightbox: React.FC<Props> = ({ image, children }) => {
{image}
<div className="mt-2 flex items-center justify-between space-x-4 leading-5">
<p className="text-[0.85rem] italic">{children}</p>
<button type="button" onClick={closeModal}>
<button
type="button"
onClick={closeModal}
aria-label="Schließen"
>
<XMarkIcon className="w-8" />
</button>
</div>
Expand Down

0 comments on commit 9d146be

Please sign in to comment.