Skip to content

Commit a8ae89d

Browse files
committed
feat: Add styled input components for user profiling questions
1 parent d64361e commit a8ae89d

File tree

1 file changed

+32
-6
lines changed

1 file changed

+32
-6
lines changed

app/client/src/pages/setup/NonSuperUserProfilingQuestions.tsx

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,35 @@ const StyledButton = styled(Button)`
3333
width: 160px;
3434
`;
3535

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+
3665
interface UserFormProps {
3766
onGetStarted?: (proficiency?: string, useCase?: string) => void;
3867
}
@@ -76,16 +105,14 @@ function NonSuperUserProfilingQuestions(
76105
return (
77106
<form onSubmit={props.handleSubmit(onSubmit)}>
78107
{isCloudBillingEnabled && (
79-
<>
80-
<Space />
81-
<FormTextField
108+
<InputSection>
109+
<StyledFormTextField
82110
data-testid="t--user-full-name"
83111
label={createMessage(WELCOME_FORM_FULL_NAME)}
84112
name="fullName"
85113
placeholder="Enter your full name"
86114
/>
87-
<Space />
88-
</>
115+
</InputSection>
89116
)}
90117
<Field
91118
component={RadioButtonGroup}
@@ -95,7 +122,6 @@ function NonSuperUserProfilingQuestions(
95122
showSubtitle
96123
testid="t--user-proficiency"
97124
/>
98-
<Space />
99125
<Field
100126
component={RadioButtonGroup}
101127
label={createMessage(WELCOME_FORM_NON_SUPER_USER_USE_CASE)}

0 commit comments

Comments
 (0)