Skip to content

fix(CommandPalette): fix demo items not rendering and font size#175

Merged
mattrothenberg merged 3 commits intomainfrom
fix/command-palette-demo-bugs
Mar 4, 2026
Merged

fix(CommandPalette): fix demo items not rendering and font size#175
mattrothenberg merged 3 commits intomainfrom
fix/command-palette-demo-bugs

Conversation

@mattrothenberg
Copy link
Collaborator

Summary

  • Fix CommandPalette demo items not rendering (missing items prop on Group)
  • Fix Item component font size (16px → 14px via text-base class)
  • Add client-side filtering to demos so search actually works

Details

Items not rendering: The items={group.items} prop was never added to CommandPalette.Group in the demos - this bug existed since the initial commit. Without it, Autocomplete.Collection has no items to render.

Font size: The Item component didn't specify a font size, so it inherited the browser default (16px) instead of using kumo's text-base (14px). ResultItem already had text-base explicitly set.

Filtering: Demos now pre-filter groups/items client-side before passing to the component, matching how Stratus handles filtering.

- Add missing items={group.items} prop to CommandPalette.Group in demos
- Add text-base class to Item component for consistent 14px font size
- Add client-side filtering to demos so search actually filters results

The items prop was never added to the demos (bug since initial commit),
causing groups to render without their items. The Item component also
lacked an explicit font size, inheriting browser default 16px instead
of the intended 14px (text-base).
@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 4, 2026

npm i https://pkg.pr.new/@cloudflare/kumo@175

commit: 1e1fb81

@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2026

Docs Preview

View docs preview

Commit: 1e1fb81

@mattrothenberg mattrothenberg merged commit 31ce577 into main Mar 4, 2026
10 checks passed
@mattrothenberg mattrothenberg deleted the fix/command-palette-demo-bugs branch March 4, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants