Skip to content

Commit ed3e50b

Browse files
committed
Small lib update to launch workflow
1 parent 62c5c38 commit ed3e50b

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

packages/lib/src/action-icon/ActionIcon.tsx

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,22 @@ import CoreTokens from "../common/coreTokens";
55
import DxcIcon from "../icon/Icon";
66

77
const DxcActionIcon = forwardRef<RefType, ActionIconPropsTypes>(
8-
({ disabled = false, title, icon, onClick, tabIndex }, ref): JSX.Element => {
9-
return (
10-
<ActionIcon
11-
aria-label={title}
12-
disabled={disabled}
13-
onClick={onClick}
14-
onMouseDown={(event) => {
15-
event.stopPropagation();
16-
}}
17-
tabIndex={tabIndex}
18-
title={title}
19-
type="button"
20-
ref={ref}
21-
>
22-
{typeof icon === "string" ? <DxcIcon icon={icon} /> : icon}
23-
</ActionIcon>
24-
);
25-
}
8+
({ disabled = false, title, icon, onClick, tabIndex }, ref): JSX.Element => (
9+
<ActionIcon
10+
aria-label={title}
11+
disabled={disabled}
12+
onClick={onClick}
13+
onMouseDown={(event) => {
14+
event.stopPropagation();
15+
}}
16+
tabIndex={tabIndex}
17+
title={title}
18+
type="button"
19+
ref={ref}
20+
>
21+
{typeof icon === "string" ? <DxcIcon icon={icon} /> : icon}
22+
</ActionIcon>
23+
)
2624
);
2725

2826
const ActionIcon = styled.button`

0 commit comments

Comments
 (0)