diff --git a/components/command-palette.tsx b/components/command-palette.tsx index 606b188..a077ff9 100644 --- a/components/command-palette.tsx +++ b/components/command-palette.tsx @@ -519,6 +519,9 @@ export function CommandPalette({ open, onClose, onRun }: CommandPaletteProps) { onClick={onClose} >
e.stopPropagation()} > @@ -551,6 +554,12 @@ export function CommandPalette({ open, onClose, onRun }: CommandPaletteProps) { } }} placeholder="Run a command..." + role="combobox" + aria-label="Run a command" + aria-expanded="true" + aria-autocomplete="list" + aria-controls="command-palette-list" + aria-activedescendant={flatList[selectedIndex] ? `command-palette-item-${selectedIndex}` : undefined} className="flex-1 bg-transparent text-[14px] text-[var(--text-primary)] outline-none placeholder:text-[var(--text-tertiary)]" /> @@ -558,7 +567,7 @@ export function CommandPalette({ open, onClose, onRun }: CommandPaletteProps) {
-
+
{flatList.length === 0 && (
No matching commands @@ -578,6 +587,9 @@ export function CommandPalette({ open, onClose, onRun }: CommandPaletteProps) { return (