Skip to content

Commit

Permalink
fix: dropdown item active item endcontent icon
Browse files Browse the repository at this point in the history
  • Loading branch information
johnshift committed Dec 17, 2024
1 parent b27b27d commit bbbf349
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/search/components/pillar-items-dropdown-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,20 @@ export const PillarItemsDropdownContent = (props: Props) => {
onAction={onAction}
>
<ListboxSection>
{activeDropdownItems.map((label, i) => (
{activeDropdownItems.map((label) => (
<ListboxItem
key={label}
classNames={{
base: 'py-3 text-accent2 font-bold bg-accent2/5 hover:bg-accent2/20 data-[hover="true"]:bg-accent2/20',
}}
textValue={label}
endContent={i === 0 ? <LockIcon /> : <CheckmarkIcon />}
endContent={
params.item === normalizeString(label) ? (
<LockIcon />
) : (
<CheckmarkIcon />
)
}
>
{label}
</ListboxItem>
Expand Down

0 comments on commit bbbf349

Please sign in to comment.