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