Skip to content

Commit b808d08

Browse files
committed
fix(HTL-124104): ftc attrs
1 parent cb12413 commit b808d08

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

packages/core/src/Box/Box.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export type BoxProps = Omit<BorderRadiusProps, 'borderRadius'> &
9494
* @public
9595
*/
9696
export const Box: React.FC<BoxProps> = styled.div.attrs((props) => ({
97+
...props,
9798
...borderRadiusAttrs(props),
9899
...boxShadowAttrs(props),
99100
}))`

packages/core/src/Button/Button.stories.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ export const Playground: ButtonStory = {
6262
},
6363
}
6464

65+
export const Attrs: ButtonStory = {
66+
render: () => (
67+
<StoryStage>
68+
<Button size='extraLarge' gv-criticalpath='true'>
69+
Extra Large
70+
</Button>
71+
</StoryStage>
72+
),
73+
}
74+
6575
export const Size: ButtonStory = {
6676
render: () => (
6777
<StoryStage>

packages/core/src/Button/Button.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ const StyledButton: React.FC<StyledButtonProps> = styled.button.attrs((props) =>
339339
width,
340340
height,
341341
'aria-label': ariaLabel || title,
342+
...props,
342343
...paddingProps,
343344
}
344345
})`

0 commit comments

Comments
 (0)