fix(auth): use aria-label instead of name field (#7930)

This commit is contained in:
Tim Lai
2022-03-22 17:17:03 -07:00
committed by GitHub
parent 6ee54fb317
commit 859b2e149a

View File

@@ -74,7 +74,7 @@ export default class HttpAuth extends React.Component {
<label>Username:</label>
{
username ? <code> { username } </code>
: <Col><Input type="text" required="required" name="username" onChange={ this.onChange } autoFocus/></Col>
: <Col><Input type="text" required="required" name="username" aria-label="auth-basic-username" onChange={ this.onChange } autoFocus/></Col>
}
</Row>
<Row>
@@ -84,6 +84,7 @@ export default class HttpAuth extends React.Component {
: <Col><Input autoComplete="new-password"
name="password"
type="password"
aria-label="auth-basic-password"
onChange={ this.onChange }/></Col>
}
</Row>
@@ -112,7 +113,7 @@ export default class HttpAuth extends React.Component {
<label>Value:</label>
{
value ? <code> ****** </code>
: <Col><Input type="text" name="bearer" onChange={ this.onChange } autoFocus/></Col>
: <Col><Input type="text" aria-label="auth-bearer-value" onChange={ this.onChange } autoFocus/></Col>
}
</Row>
{