Skip to content

Commit

Permalink
Fix incomplete accessible name on 'Prev' button in Prompts Panel
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 committed Jan 20, 2025
1 parent d048a10 commit 45e8b89
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 45e8b89

Please sign in to comment.