Skip to content

Commit edc7737

Browse files
(Icon): improve a category icon classname
1 parent b313121 commit edc7737

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/scripts/Icon.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,9 @@ export const Icon = createFC<IconProps, { ICONS: typeof ICONS }>(
389389
containerClassName,
390390
'slds-icon_container',
391391
circleContainer ? 'slds-icon_container_circle' : null,
392-
category === 'utility' ? `slds-icon-utility-${icon}` : null,
392+
category === 'utility'
393+
? `slds-icon-utility-${icon.replace(/_/g, '-')}`
394+
: null,
393395
fillIconColor ? `slds-icon-${fillIconColor}` : null
394396
);
395397
return (

0 commit comments

Comments
 (0)