Improve accessibility of form fields in Register

See https://mui.com/material-ui/api/text-field/
This commit is contained in:
François Martin 2025-07-23 23:03:05 +02:00 committed by GitHub
parent fc84fb3c8b
commit 956d9025b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -46,21 +46,25 @@ export default class RegistrationDialog extends Component<IProps, IState> {
<DialogContent> <DialogContent>
<TextField <TextField
autoFocus autoFocus
id="register-username"
margin="dense" margin="dense"
className="name" className="name"
label="Name *" label="Name *"
name="username"
type="email" type="email"
value={name} value={name}
onChange={this.handleChange.bind(this, 'name')} onChange={this.handleChange.bind(this, 'name')}
fullWidth fullWidth
/> />
<TextField <TextField
id="register-password"
margin="dense" margin="dense"
className="password" className="password"
type="password" type="password"
value={pass} value={pass}
fullWidth fullWidth
label="Pass *" label="Pass *"
name="password"
onChange={this.handleChange.bind(this, 'pass')} onChange={this.handleChange.bind(this, 'pass')}
/> />
</DialogContent> </DialogContent>