Skip to content

Commit 859b2e1

Browse files
authored
fix(auth): use aria-label instead of name field (#7930)
1 parent 6ee54fb commit 859b2e1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/core/plugins/oas3/components/http-auth.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default class HttpAuth extends React.Component {
7474
<label>Username:</label>
7575
{
7676
username ? <code> { username } </code>
77-
: <Col><Input type="text" required="required" name="username" onChange={ this.onChange } autoFocus/></Col>
77+
: <Col><Input type="text" required="required" name="username" aria-label="auth-basic-username" onChange={ this.onChange } autoFocus/></Col>
7878
}
7979
</Row>
8080
<Row>
@@ -84,6 +84,7 @@ export default class HttpAuth extends React.Component {
8484
: <Col><Input autoComplete="new-password"
8585
name="password"
8686
type="password"
87+
aria-label="auth-basic-password"
8788
onChange={ this.onChange }/></Col>
8889
}
8990
</Row>
@@ -112,7 +113,7 @@ export default class HttpAuth extends React.Component {
112113
<label>Value:</label>
113114
{
114115
value ? <code> ****** </code>
115-
: <Col><Input type="text" name="bearer" onChange={ this.onChange } autoFocus/></Col>
116+
: <Col><Input type="text" aria-label="auth-bearer-value" onChange={ this.onChange } autoFocus/></Col>
116117
}
117118
</Row>
118119
{

0 commit comments

Comments
 (0)