We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c22404 commit b486052Copy full SHA for b486052
src/scripts/Icon.tsx
@@ -391,7 +391,9 @@ export const Icon = createFC<IconProps, { ICONS: typeof ICONS }>(
391
containerClassName,
392
'slds-icon_container',
393
circleContainer ? 'slds-icon_container_circle' : null,
394
- category === 'utility' ? `slds-icon-utility-${icon}` : null,
+ category === 'utility'
395
+ ? `slds-icon-utility-${icon.replace(/_/g, '-')}`
396
+ : null,
397
fillIconColor ? `slds-icon-${fillIconColor}` : null
398
);
399
return (
0 commit comments