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">
|
||||
<TextField
|
||||
autoFocus
|
||||
id="username"
|
||||
className="name"
|
||||
label="Username"
|
||||
name="username"
|
||||
margin="dense"
|
||||
autoComplete="username"
|
||||
value={username}
|
||||
onChange={(e) => (this.username = e.target.value)}
|
||||
/>
|
||||
<TextField
|
||||
id="password"
|
||||
type="password"
|
||||
className="password"
|
||||
label="Password"
|
||||
name="password"
|
||||
margin="normal"
|
||||
autoComplete="current-password"
|
||||
value={password}
|
||||
|
|
|
|||
Loading…
Reference in New Issue