Skip to content

Commit 7fbeccb

Browse files
Revert "remove full width text"
This reverts commit 72104a8.
1 parent f01682e commit 7fbeccb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dotcom-rendering/src/components/ProductLinkButton.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ type ProductLinkButtonProps = {
1515
url: string;
1616
size?: 'default' | 'small';
1717
fullwidth?: boolean;
18+
fullWidthText?: boolean;
1819
priority?: ButtonPriority;
1920
dataComponent?: string;
2021
minimisePadding?: boolean;
@@ -54,6 +55,7 @@ export const ProductLinkButton = ({
5455
size = 'default',
5556
fullwidth = false,
5657
minimisePadding = false,
58+
fullWidthText = false,
5759
priority = 'primary',
5860
dataComponent,
5961
}: ProductLinkButtonProps) => {
@@ -81,6 +83,7 @@ export const ProductLinkButton = ({
8183
cssOverrides={cssOverrides}
8284
>
8385
<span
86+
style={fullWidthText ? { width: '100%' } : {}}
8487
css={css`
8588
text-wrap: balance;
8689
text-align: center;

0 commit comments

Comments
 (0)