fix(a11y): label remaining unlabeled icon buttons across 12 components\n\nCo-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -293,6 +293,8 @@ export const MessageEditor = as<'div', MessageEditorProps>(
|
||||
size="300"
|
||||
radii="300"
|
||||
onClick={() => setToolbar(!toolbar)}
|
||||
aria-label={toolbar ? 'Hide formatting toolbar' : 'Show formatting toolbar'}
|
||||
aria-pressed={toolbar}
|
||||
>
|
||||
<Icon size="400" src={toolbar ? Icons.AlphabetUnderline : Icons.Alphabet} />
|
||||
</IconButton>
|
||||
@@ -322,7 +324,9 @@ export const MessageEditor = as<'div', MessageEditorProps>(
|
||||
}
|
||||
>
|
||||
<IconButton
|
||||
aria-pressed={anchor !== undefined}
|
||||
aria-label="Insert emoji"
|
||||
aria-expanded={anchor !== undefined}
|
||||
aria-haspopup="dialog"
|
||||
onClick={
|
||||
((evt) =>
|
||||
setAnchor(
|
||||
|
||||
Reference in New Issue
Block a user