🔈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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user