File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,8 @@ const ElementOrIconComponent = (
27
27
} ;
28
28
29
29
/**
30
- * @description
31
- * ElementOrIcon component is a component that can be used to display an element or an icon.
32
- * It can be used to display an icon or a component.
30
+ * ElementOrIcon component is a component that can be used to display either an element or an icon.
31
+ * It offers flexibility in rendering either icons or more complex components within a given context.
33
32
* @param {IElementOrIcon } props
34
33
* @returns {JSX.Element }
35
34
* @constructor
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ const ElementOrIllustrationComponent = (
22
22
} ;
23
23
24
24
/**
25
- * @description
26
25
* ElementOrIllustration component is a component that can be used to display an element or an illustration.
27
26
* It can be used to display an illustration or a component.
28
27
* @param {IElementOrillustration } props
Original file line number Diff line number Diff line change @@ -35,12 +35,19 @@ const IconBasicComponent = (
35
35
aria-label = { props [ 'aria-label' ] || altText }
36
36
data-testid = { iconProps . dataTestId }
37
37
disabled = { disabled }
38
+ id = { props . id }
38
39
tabIndex = { tabIndex }
39
40
type = { ButtonType . BUTTON }
40
41
onClick = { onClick }
41
42
>
42
43
< ScreenReaderOnly > { screenReaderText } </ ScreenReaderOnly >
43
- < IconStandAlone { ...iconProps } ref = { ref } dataTestId = { undefined } linearIcon = { isLinearIcon } />
44
+ < IconStandAlone
45
+ { ...iconProps }
46
+ ref = { ref }
47
+ dataTestId = { undefined }
48
+ id = { undefined }
49
+ linearIcon = { isLinearIcon }
50
+ />
44
51
</ IconButtonStyled >
45
52
) ;
46
53
}
You can’t perform that action at this time.
0 commit comments