@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitn.ai/ui",
3
- "version": "0.18.1",
3
+ "version": "0.18.2",
4
4
  "nx": {
5
5
  "name": "ui"
6
6
  },
@@ -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" class="opacity-80" />
160
+ <Kbd keys={props.shortcut as string} size="sm" />
161
161
  </Show>
162
162
  </>
163
163
  );
@@ -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 role="listbox" aria-label={props.ariaLabel ?? 'Command palette'} id={props.id}>
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={