fix(ui): combobox pattern for the slash palette, named palette input, bound labels (#1753)
The composer textarea is now role=combobox with aria-expanded, aria-controls and aria-activedescendant wired to the slash palette's listbox ids. CommandInput has an accessible name. FieldLabels without a control beside them are bound: for/id on selects, inputs, switches and duration inputs across channels, curators and schedules pages, and role=group + aria-labelledby/aria-label on the TagsInput, secret-ref and rule row groups.
This commit is contained in:
9 files changed
+45
-37
No files matched your search
@@ -34,6 +34,7 @@ const { filterState } = useCommand()
|
||||
v-bind="{ ...forwardedProps, ...$attrs }"
|
||||
v-model="filterState.search"
|
||||
data-slot="command-input"
|
||||
aria-label="Filter"
|
||||
auto-focus
|
||||
:class="cn('w-full text-label outline-hidden disabled:cursor-not-allowed disabled:opacity-50', props.class)"
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user