Improve accessibility of form fields in Login
See https://mui.com/material-ui/api/text-field/
This commit is contained in:
parent
97ea32e507
commit
9f3bbd888b
|
|
@ -28,17 +28,21 @@ class Login extends Component<Stores<'currentUser'>> {
|
||||||
<form onSubmit={this.preventDefault} id="login-form">
|
<form onSubmit={this.preventDefault} id="login-form">
|
||||||
<TextField
|
<TextField
|
||||||
autoFocus
|
autoFocus
|
||||||
|
id="username"
|
||||||
className="name"
|
className="name"
|
||||||
label="Username"
|
label="Username"
|
||||||
|
name="username"
|
||||||
margin="dense"
|
margin="dense"
|
||||||
autoComplete="username"
|
autoComplete="username"
|
||||||
value={username}
|
value={username}
|
||||||
onChange={(e) => (this.username = e.target.value)}
|
onChange={(e) => (this.username = e.target.value)}
|
||||||
/>
|
/>
|
||||||
<TextField
|
<TextField
|
||||||
|
id="password"
|
||||||
type="password"
|
type="password"
|
||||||
className="password"
|
className="password"
|
||||||
label="Password"
|
label="Password"
|
||||||
|
name="password"
|
||||||
margin="normal"
|
margin="normal"
|
||||||
autoComplete="current-password"
|
autoComplete="current-password"
|
||||||
value={password}
|
value={password}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue