fix: add missing aria-labels to icon-only buttons for accessibility

- Sidebar close button: aria-label for screen readers
- Sidebar search clear button: aria-label
- ChatMessage raw JSON copy button: aria-label
- Added i18n keys: sidebar.close, sidebar.clearSearch (EN + FR)
This commit is contained in:
Nicolas Varrot
2026-02-13 05:42:23 +00:00
parent 72f410566a
commit de6976bae8
3 changed files with 7 additions and 1 deletions

View File

@@ -338,6 +338,7 @@ function RawJsonPanel({ message }: { message: ChatMessageType }) {
onClick={handleCopy}
className="h-6 w-6 rounded-md flex items-center justify-center text-pc-text-secondary hover:text-pc-accent-light transition-colors"
title={copied ? t('message.copied') : t('message.copy')}
aria-label={copied ? t('message.copied') : t('message.copy')}
>
{copied ? <Check size={12} className="text-emerald-400" /> : <Copy size={12} />}
</button>