🔈fix: Accessible name on 'Prev' button in Prompts UI (#5369)

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.
This commit is contained in:
Marco Beretta 2025-01-20 23:14:49 +01:00 committed by GitHub
parent a2305c3a7c
commit 79585e22d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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>