Skip to content

Commit

Permalink
🔈fix: Accessible name on 'Prev' button in Prompts UI (#5369)
Browse files Browse the repository at this point in the history
Fixes #5310

Add `aria-label="previous"` attribute to the 'Prev' button in the Prompts Panel.

* Modify `client/src/components/Chat/Prompts.tsx` to include `aria-label="previous"` attribute for the button.
  • Loading branch information
berry-13 authored Jan 20, 2025
1 parent a2305c3 commit 79585e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/src/components/Chat/Prompts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export default function Prompts() {
onClick={prevPage}
disabled={!hasPreviousPage}
className="m-0 self-start p-0 hover:bg-transparent"
aria-label="previous"
>
<ChevronLeft className={`${hasPreviousPage ? '' : 'text-gray-500'}`} />
</Button>
Expand Down

0 comments on commit 79585e2

Please sign in to comment.