fix(auth): use aria-label instead of name field (#7930)
This commit is contained in:
@@ -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>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user