Skip to content

Commit

Permalink
fix for multiple values
Browse files Browse the repository at this point in the history
  • Loading branch information
ankormoreankor committed Feb 21, 2025
1 parent a139635 commit 843979d
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export const LabelValueSelector: FC<LabelValueSelectorProps> = ({
</SearchBox.Root>

<Button
className="absolute right-2 top-1.5 z-20 text-icons-1 hover:text-icons-2"
className="text-icons-1 hover:text-icons-2 absolute right-2 top-1.5 z-20"
size="icon"
variant="custom"
onClick={onSearchClean}
Expand All @@ -126,15 +126,17 @@ export const LabelValueSelector: FC<LabelValueSelectorProps> = ({
<LabelMarker color={value.color} label={label.key} value={value.value} />

{label.selectedValueId === value.id && (
<Icon className="absolute right-0 top-1 text-icons-2" name="tick" size={12} />
<Icon className="text-icons-2 absolute right-0 top-1" name="tick" size={12} />
)}
</div>
</DropdownMenu.Item>
))}

{isAllowAddNewValue && !!label?.isCustom && !!values.length && <DropdownMenu.Separator />}

{isAllowAddNewValue && !!label?.isCustom && (
<>
<span className="px-2 pb-1.5 pt-1 leading-[1.125rem] text-foreground-2">
<span className="text-foreground-2 px-2 pb-1.5 pt-1 leading-[1.125rem]">
{t('views:pullRequests.addValue', 'Add new value')}
</span>

Expand All @@ -145,7 +147,7 @@ export const LabelValueSelector: FC<LabelValueSelectorProps> = ({
)}

{!values.length && !label?.isCustom && (
<span className="block flex-none gap-x-5 px-2 py-[7px] text-foreground-4">
<span className="text-foreground-4 block flex-none gap-x-5 px-2 py-[7px]">
{t('views:pullRequests.labelNotFound', 'Label not found')}
</span>
)}
Expand Down

0 comments on commit 843979d

Please sign in to comment.