Skip to content

Commit

Permalink
fix: improving accessibility on buttons with no text
Browse files Browse the repository at this point in the history
  • Loading branch information
Aegean09 authored Apr 30, 2024
1 parent bef4a18 commit 2bd1cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/scrolling-carousel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export const ScrollingCarousel: FunctionComponent<SliderProps> = (
) => {
return (
<div data-arrow={data} onClick={() => slide(direction)}>
{element ?? <button />}
{element ?? <button aria-label={`${data === "right" ? "Sağa" : "Sola"} kaydır`}/>}
</div>
);
};
Expand Down

0 comments on commit 2bd1cc6

Please sign in to comment.