Skip to content

Commit 9a84e05

Browse files
(Picklist): normalize markups around Icon
1 parent 3477d9c commit 9a84e05

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

src/scripts/Picklist.tsx

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -580,12 +580,13 @@ export const Picklist: (<MultiSelect extends boolean | undefined>(
580580
>
581581
<span className='slds-truncate'>{selectedItemLabel}</span>
582582
</div>
583-
<span className='slds-icon_container slds-icon-utility-down slds-input__icon slds-input__icon_right'>
584-
<Icon
585-
icon='down'
586-
className='slds-icon slds-icon_x-small slds-icon-text-default'
587-
/>
588-
</span>
583+
<Icon
584+
containerClassName='slds-input__icon slds-input__icon_right'
585+
category='utility'
586+
icon='down'
587+
size='x-small'
588+
textColor='default'
589+
/>
589590
</div>
590591
{opened && (
591592
<div
@@ -676,9 +677,12 @@ export const PicklistItem: FC<PicklistItemProps> = ({
676677
>
677678
<span className='slds-media__figure slds-listbox__option-icon'>
678679
{selected && (
679-
<span className='slds-icon_container slds-icon-utility-check slds-current-color'>
680-
<Icon icon='check' className='slds-icon slds-icon_x-small' />
681-
</span>
680+
<Icon
681+
category='utility'
682+
icon='check'
683+
size='x-small'
684+
textColor='currentColor'
685+
/>
682686
)}
683687
</span>
684688
<span className='slds-media__body'>

0 commit comments

Comments
 (0)