@@ -71,22 +71,37 @@ export default class HttpAuth extends React.Component {
7171 < Markdown source = { schema . get ( "description" ) } />
7272 </ Row >
7373 < Row >
74- < label > Username:</ label >
74+ < label htmlFor = "auth-basic-username" > Username:</ label >
7575 {
7676 username ? < code > { username } </ code >
77- : < Col > < Input type = "text" required = "required" name = "username" aria-label = "auth-basic-username" onChange = { this . onChange } autoFocus /> </ Col >
77+ : < Col >
78+ < Input
79+ id = "auth-basic-username"
80+ type = "text"
81+ required = "required"
82+ name = "username"
83+ aria-label = "auth-basic-username"
84+ onChange = { this . onChange }
85+ autoFocus
86+ />
87+ </ Col >
7888 }
7989 </ Row >
8090 < Row >
81- < label > Password:</ label >
91+ < label htmlFor = "auth-basic-password" > Password:</ label >
8292 {
8393 username ? < code > ****** </ code >
84- : < Col > < Input autoComplete = "new-password"
85- name = "password"
86- type = "password"
87- aria-label = "auth-basic-password"
88- onChange = { this . onChange } /> </ Col >
89- }
94+ : < Col >
95+ < Input
96+ id = "auth-basic-password"
97+ autoComplete = "new-password"
98+ name = "password"
99+ type = "password"
100+ aria-label = "auth-basic-password"
101+ onChange = { this . onChange }
102+ />
103+ </ Col >
104+ }
90105 </ Row >
91106 {
92107 errors . valueSeq ( ) . map ( ( error , key ) => {
@@ -110,10 +125,18 @@ export default class HttpAuth extends React.Component {
110125 < Markdown source = { schema . get ( "description" ) } />
111126 </ Row >
112127 < Row >
113- < label > Value:</ label >
128+ < label htmlFor = "auth-bearer-value" > Value:</ label >
114129 {
115130 value ? < code > ****** </ code >
116- : < Col > < Input type = "text" aria-label = "auth-bearer-value" onChange = { this . onChange } autoFocus /> </ Col >
131+ : < Col >
132+ < Input
133+ id = "auth-bearer-value"
134+ type = "text"
135+ aria-label = "auth-bearer-value"
136+ onChange = { this . onChange }
137+ autoFocus
138+ />
139+ </ Col >
117140 }
118141 </ Row >
119142 {
0 commit comments