@@ -9,6 +9,7 @@ import { IIconComplex, IIconStandAlone } from './types';
9
9
10
10
const IconComplexComponent = (
11
11
{
12
+ id,
12
13
color,
13
14
height,
14
15
width,
@@ -27,7 +28,6 @@ const IconComplexComponent = (
27
28
28
29
React . useEffect ( ( ) => {
29
30
( async ( ) => {
30
- // eslint-disable-next-line n/no-unsupported-features/node-builtins
31
31
const res = await fetch ( icon ) ;
32
32
let response = '' ;
33
33
if ( res ) {
@@ -51,6 +51,7 @@ const IconComplexComponent = (
51
51
aria-label = { altText }
52
52
dangerouslySetInnerHTML = { { __html : svgContent } }
53
53
data-testid = { dataTestId }
54
+ id = { id }
54
55
role = { emptyAltText ? ROLES . NONE : ROLES . IMG }
55
56
twistAnimationTransformValue = { twistAnimationTransformValue }
56
57
/>
@@ -61,6 +62,7 @@ export const IconComplex = React.forwardRef(IconComplexComponent);
61
62
62
63
const IconStandAloneComponent = (
63
64
{
65
+ id,
64
66
linearIcon,
65
67
icon,
66
68
altText,
@@ -89,6 +91,7 @@ const IconStandAloneComponent = (
89
91
emptyAltText = { isEmptyAltText }
90
92
height = { height }
91
93
icon = { icon }
94
+ id = { id }
92
95
moveRound = { rotate }
93
96
transitionDuration = { transitionDuration }
94
97
twistAnimationTransformValue = { twistAnimationTransformValue }
@@ -108,6 +111,7 @@ const IconStandAloneComponent = (
108
111
alt = { altText }
109
112
aria-hidden = { isEmptyAltText }
110
113
data-testid = { dataTestId }
114
+ id = { id }
111
115
loading = "lazy"
112
116
src = { icon }
113
117
/>
@@ -124,6 +128,7 @@ const IconStandAloneComponent = (
124
128
aria-hidden = { isEmptyAltText }
125
129
aria-label = { altText }
126
130
data-testid = { dataTestId }
131
+ id = { id }
127
132
role = { isEmptyAltText ? ROLES . NONE : ROLES . IMG }
128
133
twistAnimationTransformValue = { twistAnimationTransformValue }
129
134
/>
0 commit comments