Skip to content

Commit 35a62a5

Browse files
(Picklist): restore the iconRight prop
1 parent 38195da commit 35a62a5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/scripts/Picklist.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,7 @@ export type PicklistItemProps = {
628628
selected?: boolean;
629629
disabled?: boolean;
630630
icon?: string;
631+
iconRight?: string;
631632
divider?: 'top' | 'bottom';
632633
onClick?: (e: React.SyntheticEvent) => void;
633634
children?: React.ReactNode;
@@ -642,6 +643,7 @@ export const PicklistItem: FC<PicklistItemProps> = ({
642643
value,
643644
disabled,
644645
icon,
646+
iconRight,
645647
divider,
646648
onClick: onClick_,
647649
children,
@@ -708,6 +710,16 @@ export const PicklistItem: FC<PicklistItemProps> = ({
708710
{label || children}
709711
</span>
710712
</span>
713+
{iconRight && (
714+
<span className='slds-media__figure slds-media__figure_reverse'>
715+
<Icon
716+
category='utility'
717+
icon={iconRight}
718+
size='x-small'
719+
textColor='currentColor'
720+
/>
721+
</span>
722+
)}
711723
</div>
712724
</li>
713725
);

0 commit comments

Comments
 (0)