diff --git a/example/src/Examples/CardExample.tsx b/example/src/Examples/CardExample.tsx
index c05ab3697b..114938b225 100644
--- a/example/src/Examples/CardExample.tsx
+++ b/example/src/Examples/CardExample.tsx
@@ -104,6 +104,20 @@ const CardExample = () => {
+
+
+
+
+
+
+
+
{
mode:
child.props.mode ||
(isV3 && (i === 0 ? 'outlined' : 'contained')),
- style: isV3 && styles.button,
+ style: [isV3 && styles.button, child.props.style],
})
: child;
})}
diff --git a/src/components/__tests__/Card/Card.test.tsx b/src/components/__tests__/Card/Card.test.tsx
index 8fec512703..d4bf61a693 100644
--- a/src/components/__tests__/Card/Card.test.tsx
+++ b/src/components/__tests__/Card/Card.test.tsx
@@ -89,6 +89,26 @@ describe('CardActions', () => {
'contained'
);
});
+
+ it('renders button with custom styles', () => {
+ const { getByTestId } = render(
+
+
+
+
+
+ );
+
+ expect(getByTestId('card-actions-button')).toHaveStyle({
+ borderRadius: 32,
+ });
+ });
});
describe('getCardColors - background color', () => {