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 b313121 commit edc7737Copy full SHA for edc7737
src/scripts/Icon.tsx
@@ -389,7 +389,9 @@ export const Icon = createFC<IconProps, { ICONS: typeof ICONS }>(
389
containerClassName,
390
'slds-icon_container',
391
circleContainer ? 'slds-icon_container_circle' : null,
392
- category === 'utility' ? `slds-icon-utility-${icon}` : null,
+ category === 'utility'
393
+ ? `slds-icon-utility-${icon.replace(/_/g, '-')}`
394
+ : null,
395
fillIconColor ? `slds-icon-${fillIconColor}` : null
396
);
397
return (
0 commit comments