Skip to content

Commit 3efea73

Browse files
authored
Merge branch 'master' into Mil4n0r/tooltip_example
2 parents b5de927 + a555fb0 commit 3efea73

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-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`

turbo.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"tasks": {
44
"build": {
55
"dependsOn": ["^build"],
6+
"env": ["SITE_VERSION", "NODE_ENV"],
67
"inputs": ["$TURBO_DEFAULT$", ".env", ".env.*", "!**/*.stories.{tsx,jsx,mdx}"],
78
"outputs": [".next/**", "!.next/cache/**", "dist/**", "storybook-static/**"]
89
},

0 commit comments

Comments
 (0)