File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
apps/copilots/src/pages/copilot-request-form
libs/ui/lib/components/button/base-button Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -303,6 +303,7 @@ const CopilotRequestForm: FC<{}> = () => {
303
303
customRadius
304
304
noCaps
305
305
leftAlignText
306
+ textWrap
306
307
/>
307
308
< Button
308
309
secondary
@@ -316,6 +317,7 @@ const CopilotRequestForm: FC<{}> = () => {
316
317
customRadius
317
318
noCaps
318
319
leftAlignText
320
+ textWrap
319
321
/>
320
322
< Button
321
323
secondary
@@ -329,6 +331,7 @@ const CopilotRequestForm: FC<{}> = () => {
329
331
customRadius
330
332
noCaps
331
333
leftAlignText
334
+ textWrap
332
335
/>
333
336
{ formErrors . complexity && (
334
337
< p className = { styles . error } >
Original file line number Diff line number Diff line change @@ -60,6 +60,12 @@ $btn-secondary-border-width: $border;
60
60
justify-content : left ;
61
61
}
62
62
63
+ & :global(.btn-text-wrap ) {
64
+ white-space : normal ;
65
+ word-wrap : break-word ;
66
+ text-align : left ;
67
+ }
68
+
63
69
// Define variants
64
70
& :global(.btn-variant-danger ) {
65
71
--btn-variant : #{$red-120 } ;
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ export interface BaseButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>
27
27
customRadius ?: boolean
28
28
noCaps ?: boolean
29
29
leftAlignText ?: boolean
30
+ textWrap ?: boolean
30
31
}
31
32
32
33
const BaseButton : FC < BaseButtonProps > = props => {
@@ -47,6 +48,7 @@ const BaseButton: FC<BaseButtonProps> = props => {
47
48
'btn-style-primary' : props . primary ,
48
49
'btn-style-secondary' : props . secondary ,
49
50
[ `btn-variant-${ props . variant } ` ] : ! ! props . variant ,
51
+ 'btn-text-wrap' : props . textWrap ,
50
52
} )
51
53
52
54
return (
You can’t perform that action at this time.
0 commit comments