fix: associate HTML labels with inputs (#9599)

Refs #8879

Co-authored-by: morsko1 <morssko1@gmail.com>
This commit is contained in:
Oliwia Rogala
2024-02-15 11:17:11 +01:00
committed by GitHub
parent 363b3abbd6
commit 16fef96338
6 changed files with 90 additions and 29 deletions

View File

@@ -66,10 +66,17 @@ export default class ApiKeyAuth extends React.Component {
<p>In: <code>{ schema.get("in") }</code></p>
</Row>
<Row>
<label>Value:</label>
<label htmlFor="api_key_value">Value:</label>
{
value ? <code> ****** </code>
: <Col><Input type="text" onChange={ this.onChange } autoFocus/></Col>
: <Col>
<Input
id="api_key_value"
type="text"
onChange={ this.onChange }
autoFocus
/>
</Col>
}
</Row>
{