Merge pull request 'Scope CommandPalette uppercase to the group heading' (#4) from fix/cmdk-heading-uppercase into main
ci / build-and-design (push) Failing after 1s
ci / build-and-design (push) Failing after 1s
This commit was merged in pull request #4.
This commit is contained in:
@@ -59,7 +59,16 @@ export function CommandPalette({
|
||||
<Command.List className="max-h-80 overflow-auto p-2">
|
||||
<Command.Empty className="py-6 text-center text-sm text-muted">No results.</Command.Empty>
|
||||
{groups.map(([group, items]) => (
|
||||
<Command.Group key={group} heading={group} className="px-1 py-1 text-xs font-semibold uppercase tracking-wide text-muted [&_[cmdk-group-items]]:mt-1">
|
||||
<Command.Group
|
||||
key={group}
|
||||
heading={group}
|
||||
className={cn(
|
||||
"px-1 py-1 [&_[cmdk-group-items]]:mt-1",
|
||||
"[&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-semibold",
|
||||
"[&_[cmdk-group-heading]]:uppercase [&_[cmdk-group-heading]]:tracking-wide",
|
||||
"[&_[cmdk-group-heading]]:text-muted"
|
||||
)}
|
||||
>
|
||||
{items.map((a) => (
|
||||
<Command.Item
|
||||
key={a.id}
|
||||
|
||||
Reference in New Issue
Block a user