Skip to content

Commit b486052

Browse files
(Icon): improve a category icon classname
1 parent 0c22404 commit b486052

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
@@ -391,7 +391,9 @@ export const Icon = createFC<IconProps, { ICONS: typeof ICONS }>(
391391
containerClassName,
392392
'slds-icon_container',
393393
circleContainer ? 'slds-icon_container_circle' : null,
394-
category === 'utility' ? `slds-icon-utility-${icon}` : null,
394+
category === 'utility'
395+
? `slds-icon-utility-${icon.replace(/_/g, '-')}`
396+
: null,
395397
fillIconColor ? `slds-icon-${fillIconColor}` : null
396398
);
397399
return (

0 commit comments

Comments
 (0)