We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f01682e commit 7fbeccbCopy full SHA for 7fbeccb
1 file changed
dotcom-rendering/src/components/ProductLinkButton.tsx
@@ -15,6 +15,7 @@ type ProductLinkButtonProps = {
15
url: string;
16
size?: 'default' | 'small';
17
fullwidth?: boolean;
18
+ fullWidthText?: boolean;
19
priority?: ButtonPriority;
20
dataComponent?: string;
21
minimisePadding?: boolean;
@@ -54,6 +55,7 @@ export const ProductLinkButton = ({
54
55
size = 'default',
56
fullwidth = false,
57
minimisePadding = false,
58
+ fullWidthText = false,
59
priority = 'primary',
60
dataComponent,
61
}: ProductLinkButtonProps) => {
@@ -81,6 +83,7 @@ export const ProductLinkButton = ({
81
83
cssOverrides={cssOverrides}
82
84
>
85
<span
86
+ style={fullWidthText ? { width: '100%' } : {}}
87
css={css`
88
text-wrap: balance;
89
text-align: center;
0 commit comments