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 fd2137d commit 7966000Copy full SHA for 7966000
src/components/icon/icon.tsx
@@ -33,12 +33,13 @@ const IconBasicComponent = (
33
$width={props.width}
34
aria-disabled={disabled}
35
aria-label={props['aria-label'] || altText}
36
+ data-testid={iconProps.dataTestId}
37
disabled={disabled}
38
type={ButtonType.BUTTON}
39
onClick={onClick}
40
>
41
<ScreenReaderOnly>{screenReaderText}</ScreenReaderOnly>
- <IconStandAlone {...iconProps} ref={ref} linearIcon={isLinearIcon} />
42
+ <IconStandAlone {...iconProps} ref={ref} dataTestId={undefined} linearIcon={isLinearIcon} />
43
</IconButtonStyled>
44
);
45
}
0 commit comments