Skip to content

Commit 4425f47

Browse files
(Pill): add icon container instead of the slds-pill__icon classname
see: https://v1.lightningdesignsystem.com/components/pills/#About-Pills
1 parent 2d589cc commit 4425f47

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/scripts/Pill.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,9 @@ export const Pill: FC<PillProps> = (props) => {
7070
onClick={onClick}
7171
>
7272
{icon && icon.icon ? (
73-
<Icon
74-
className='slds-pill__icon'
75-
category={icon.category}
76-
icon={icon.icon}
77-
/>
73+
<span className='slds-pill__icon_container'>
74+
<Icon category={icon.category} icon={icon.icon} />
75+
</span>
7876
) : undefined}
7977
{disabled ? (
8078
<span className='slds-pill__label' title={fullLabel}>

0 commit comments

Comments
 (0)