Skip to content

Commit

Permalink
fix(packages/ui): cmdk breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
LufyCZ committed Jan 28, 2025
1 parent 75ad5a3 commit cd01e59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/ui/sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const Sidebar: FC<Omit<SidebarContainerProps, 'children' | 'shiftContent'>> = ({
return (
<CommandItem
key={network}
className="aria-selected:!bg-[unset] aria-selected:!text-[unset] !p-0 my-0.5"
className={`[aria-selected="true"]:!bg-[unset] [aria-selected="true"]:!text-[unset] !p-0 my-0.5`}
testdata-id={`network-selector-${network}`}
value={`${name}__${network}`}
onSelect={
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/command.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const CommandItem = React.forwardRef<
<CommandPrimitive.Item
ref={ref}
className={classNames(
'relative flex cursor-default select-none items-center rounded-lg p-2 text-sm outline-none aria-selected:bg-muted aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
'relative flex cursor-default select-none items-center rounded-lg p-2 text-sm outline-none [aria-selected="true"]:bg-muted [aria-selected="true"]:text-accent-foreground [aria-disabled="true"]:pointer-events-none [aria-disabled="true"]:opacity-50',
className,
)}
{...props}
Expand Down

0 comments on commit cd01e59

Please sign in to comment.