diff --git a/packages/react/src/components/Notification/Notification.js b/packages/react/src/components/Notification/Notification.js index ca95cf84ed37..fb890fcf44e8 100644 --- a/packages/react/src/components/Notification/Notification.js +++ b/packages/react/src/components/Notification/Notification.js @@ -70,7 +70,7 @@ export function NotificationButton({ notificationType, ...rest }) { - const buttonClasName = cx(className, { + const buttonClassName = cx(className, { [`${prefix}--toast-notification__close-button`]: notificationType === 'toast', [`${prefix}--inline-notification__close-button`]: @@ -88,7 +88,7 @@ export function NotificationButton({ type={type} aria-label={iconDescription} title={iconDescription} - className={buttonClasName}> + className={buttonClassName}> {IconTag && ( )}