Skip to content

Commit

Permalink
fix: fixed tag default prop for spacing box (#938)
Browse files Browse the repository at this point in the history
  • Loading branch information
clintonmedbery authored Mar 7, 2023
1 parent 0be7f91 commit 1867c52
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ exports[`MessagePanel appearance='error' 1`] = `
xlink:href="#system-circle-close"
/>
</svg>
<div
<span
class="css-m1scup"
data-cy="spacingBox"
>
Heading
</div>
</span>
</h2>
</div>
<div
Expand Down
7 changes: 6 additions & 1 deletion packages/styleUtils/modifiers/components/SpacingBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ const SpacingBox = (props: SpacingBoxProps) => {
: padding(side, spacingSize);

return (
<Box className={cx(className, paddingStyles)} data-cy={dataCy} {...other} />
<Box
className={cx(className, paddingStyles)}
data-cy={dataCy}
tag={tag}
{...other}
/>
);
};

Expand Down

0 comments on commit 1867c52

Please sign in to comment.