Skip to content

Commit

Permalink
fix(auth): use aria-label instead of name field (#7930)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-lai committed Mar 23, 2022
1 parent 6ee54fb commit 859b2e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/plugins/oas3/components/http-auth.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand Down Expand Up @@ -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>
{
Expand Down

0 comments on commit 859b2e1

Please sign in to comment.