Skip to content

Commit a4794ee

Browse files
committed
fix(react): make BannerAlert iconProps spread before severity props to match React Native and prevent runtime override of name/color/size
1 parent 4f51eee commit a4794ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/design-system-react/src/components/BannerAlert/BannerAlert.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ export const BannerAlert = forwardRef<HTMLDivElement, BannerAlertProps>(
3333
ref={ref}
3434
startAccessory={
3535
<Icon
36+
{...iconProps}
3637
name={iconName}
3738
color={iconColor}
3839
size={IconSize.Lg}
39-
{...iconProps}
4040
/>
4141
}
4242
backgroundColor={backgroundColor}

0 commit comments

Comments
 (0)