Skip to content

Commit 8560da8

Browse files
author
Kubit
committed
Modify Icon description and props
1 parent 7a18543 commit 8560da8

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

src/components/elementOrIcon/elementOrIcon.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ const ElementOrIconComponent = (
2727
};
2828

2929
/**
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.
3332
* @param {IElementOrIcon} props
3433
* @returns {JSX.Element}
3534
* @constructor

src/components/elementOrIllustration/elementOrIllustration.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ const ElementOrIllustrationComponent = (
2222
};
2323

2424
/**
25-
* @description
2625
* ElementOrIllustration component is a component that can be used to display an element or an illustration.
2726
* It can be used to display an illustration or a component.
2827
* @param {IElementOrillustration} props

src/components/icon/icon.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,19 @@ const IconBasicComponent = (
3535
aria-label={props['aria-label'] || altText}
3636
data-testid={iconProps.dataTestId}
3737
disabled={disabled}
38+
id={props.id}
3839
tabIndex={tabIndex}
3940
type={ButtonType.BUTTON}
4041
onClick={onClick}
4142
>
4243
<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+
/>
4451
</IconButtonStyled>
4552
);
4653
}

0 commit comments

Comments
 (0)