@kitn.ai/ui 0.18.1 → 0.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/elements/search.tsx
CHANGED
|
@@ -157,7 +157,7 @@ defineWebComponent<Props, Events>('kai-search', {
|
|
|
157
157
|
</button>
|
|
158
158
|
</Show>
|
|
159
159
|
<Show when={!value() && props.shortcut}>
|
|
160
|
-
<Kbd keys={props.shortcut as string} size="sm"
|
|
160
|
+
<Kbd keys={props.shortcut as string} size="sm" />
|
|
161
161
|
</Show>
|
|
162
162
|
</>
|
|
163
163
|
);
|
package/src/ui/command.tsx
CHANGED
|
@@ -41,7 +41,11 @@ export function CommandList(props: CommandListProps): JSX.Element {
|
|
|
41
41
|
const hasItems = () => props.groups.some((g) => g.items.length > 0);
|
|
42
42
|
|
|
43
43
|
return (
|
|
44
|
-
<div
|
|
44
|
+
<div
|
|
45
|
+
role={hasItems() ? 'listbox' : undefined}
|
|
46
|
+
aria-label={hasItems() ? (props.ariaLabel ?? 'Command palette') : undefined}
|
|
47
|
+
id={props.id}
|
|
48
|
+
>
|
|
45
49
|
<Show
|
|
46
50
|
when={hasItems()}
|
|
47
51
|
fallback={
|