fix(document-picker): add aria-label to combobox input

The document search input had no accessible label — role="combobox"
without a label is an accessibility violation. Bound aria-label to
the existing placeholder prop so screen readers announce the field purpose.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-06-09 14:45:33 +02:00
parent 7e6030a4fc
commit 39e07fc02e

View File

@@ -78,6 +78,7 @@ function formatDocLabel(doc: DocumentOption): string {
type="text" type="text"
role="combobox" role="combobox"
autocomplete="off" autocomplete="off"
aria-label={placeholder}
aria-expanded={picker.isOpen && picker.results.length > 0} aria-expanded={picker.isOpen && picker.results.length > 0}
aria-controls={listboxId} aria-controls={listboxId}
aria-autocomplete="list" aria-autocomplete="list"