Skip to content

Commit 2519bb1

Browse files
committed
move labels outside form
1 parent a2ffa13 commit 2519bb1

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

src/components/SignInForm.tsx

+20-2
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,23 @@ const SignInForm: React.FC<Props> = ({ authService }) => {
106106
>
107107
{({ isValid, isSubmitting }) => (
108108
<Form className={classes.form}>
109+
<label
110+
style={{
111+
display: "block",
112+
marginBottom: "-10px",
113+
marginTop: "20px",
114+
fontSize: "1.4em",
115+
}}
116+
>
117+
Username
118+
</label>
109119
<Field name="username">
110120
{({ field, meta: { error, value, initialValue, touched } }: FieldProps) => (
111121
<TextField
112122
variant="outlined"
113123
margin="normal"
114124
fullWidth
115125
id="username"
116-
label="Username"
117126
type="text"
118127
autoFocus
119128
data-test="signin-username"
@@ -123,13 +132,22 @@ const SignInForm: React.FC<Props> = ({ authService }) => {
123132
/>
124133
)}
125134
</Field>
135+
<label
136+
style={{
137+
display: "block",
138+
marginBottom: "-10px",
139+
marginTop: "20px",
140+
fontSize: "1.4em",
141+
}}
142+
>
143+
Password
144+
</label>
126145
<Field name="password">
127146
{({ field, meta: { error, value, initialValue, touched } }: FieldProps) => (
128147
<TextField
129148
variant="outlined"
130149
margin="normal"
131150
fullWidth
132-
label="Password"
133151
type="password"
134152
id="password"
135153
data-test="signin-password"

0 commit comments

Comments
 (0)