Skip to content

Commit

Permalink
Merge pull request #2110 from adevinta/combobox-no-result-padding
Browse files Browse the repository at this point in the history
fix(combobox): missing padding in combobox empty view
  • Loading branch information
Powerplex authored May 3, 2024
2 parents 78b1ddd + 1d76dfc commit 35c2ce5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/components/combobox/src/ComboboxEmpty.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { cx } from 'class-variance-authority'
import { forwardRef, type ReactNode, type Ref } from 'react'

import { useComboboxContext } from './ComboboxContext'
Expand All @@ -13,7 +14,7 @@ export const Empty = forwardRef(
const hasNoItemVisible = ctx.filteredItemsMap.size === 0

return hasNoItemVisible ? (
<div ref={forwardedRef} className={className}>
<div ref={forwardedRef} className={cx('px-lg py-md', className)}>
{children}
</div>
) : null
Expand Down

0 comments on commit 35c2ce5

Please sign in to comment.