@@ -33,6 +33,35 @@ const StyledButton = styled(Button)`
33
33
width: 160px;
34
34
` ;
35
35
36
+ // Styled Input to match the radio button group styling
37
+ const StyledFormTextField = styled ( FormTextField ) `
38
+ .ads-v2-input {
39
+ width: 100%;
40
+ max-width: none;
41
+ }
42
+
43
+ .ads-v2-input__input {
44
+ height: 36px;
45
+ border-radius: var(--ads-v2-border-radius);
46
+ padding: var(--ads-v2-spaces-3);
47
+ font-size: var(--ads-font-size-4);
48
+ width: 100%;
49
+ box-sizing: border-box;
50
+ }
51
+
52
+ .ads-v2-input__label {
53
+ font-size: var(--ads-font-size-4);
54
+ font-weight: var(--ads-font-weight-bold-xl);
55
+ color: var(--ads-v2-color-gray-700);
56
+ margin-bottom: 0.5rem;
57
+ }
58
+ ` ;
59
+
60
+ // Input section container for consistent spacing
61
+ const InputSection = styled . div `
62
+ margin-bottom: ${ ( props ) => props . theme . spaces [ 10 ] } px;
63
+ ` ;
64
+
36
65
interface UserFormProps {
37
66
onGetStarted ?: ( proficiency ?: string , useCase ?: string ) => void ;
38
67
}
@@ -76,16 +105,14 @@ function NonSuperUserProfilingQuestions(
76
105
return (
77
106
< form onSubmit = { props . handleSubmit ( onSubmit ) } >
78
107
{ isCloudBillingEnabled && (
79
- < >
80
- < Space />
81
- < FormTextField
108
+ < InputSection >
109
+ < StyledFormTextField
82
110
data-testid = "t--user-full-name"
83
111
label = { createMessage ( WELCOME_FORM_FULL_NAME ) }
84
112
name = "fullName"
85
113
placeholder = "Enter your full name"
86
114
/>
87
- < Space />
88
- </ >
115
+ </ InputSection >
89
116
) }
90
117
< Field
91
118
component = { RadioButtonGroup }
@@ -95,7 +122,6 @@ function NonSuperUserProfilingQuestions(
95
122
showSubtitle
96
123
testid = "t--user-proficiency"
97
124
/>
98
- < Space />
99
125
< Field
100
126
component = { RadioButtonGroup }
101
127
label = { createMessage ( WELCOME_FORM_NON_SUPER_USER_USE_CASE ) }
0 commit comments