Skip to content

Commit eb931eb

Browse files
authored
Merge pull request #500 from mashmatrix/support-slds-2-remove-unnecessary-text-color-props
Remove unnecessary `textColor` props from `PicklistItem`
2 parents 0891774 + ffb639f commit eb931eb

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

src/scripts/Picklist.tsx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -712,12 +712,7 @@ export const PicklistItem: FC<PicklistItemProps> = ({
712712
>
713713
<span className='slds-media__figure slds-listbox__option-icon'>
714714
{icon ? (
715-
<Icon
716-
category='utility'
717-
icon={icon}
718-
size='x-small'
719-
textColor='currentColor'
720-
/>
715+
<Icon category='utility' icon={icon} size='x-small' />
721716
) : selected ? (
722717
<Icon
723718
category='utility'
@@ -734,12 +729,7 @@ export const PicklistItem: FC<PicklistItemProps> = ({
734729
</span>
735730
{iconRight && (
736731
<span className='slds-media__figure slds-media__figure_reverse'>
737-
<Icon
738-
category='utility'
739-
icon={iconRight}
740-
size='x-small'
741-
textColor='currentColor'
742-
/>
732+
<Icon category='utility' icon={iconRight} size='x-small' />
743733
</span>
744734
)}
745735
</div>

0 commit comments

Comments
 (0)