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>
|
<label>Username:</label>
|
||||||
{
|
{
|
||||||
username ? <code> { username } </code>
|
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>
|
||||||
<Row>
|
<Row>
|
||||||
@@ -84,6 +84,7 @@ export default class HttpAuth extends React.Component {
|
|||||||
: <Col><Input autoComplete="new-password"
|
: <Col><Input autoComplete="new-password"
|
||||||
name="password"
|
name="password"
|
||||||
type="password"
|
type="password"
|
||||||
|
aria-label="auth-basic-password"
|
||||||
onChange={ this.onChange }/></Col>
|
onChange={ this.onChange }/></Col>
|
||||||
}
|
}
|
||||||
</Row>
|
</Row>
|
||||||
@@ -112,7 +113,7 @@ export default class HttpAuth extends React.Component {
|
|||||||
<label>Value:</label>
|
<label>Value:</label>
|
||||||
{
|
{
|
||||||
value ? <code> ****** </code>
|
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>
|
</Row>
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user