Skip to content

Commit

Permalink
fix: add missing HTML id attributes (#9563)
Browse files Browse the repository at this point in the history
Refs #9523

Co-authored-by: Reges Mendes <[email protected]>
  • Loading branch information
char0n and regesmendes authored Feb 9, 2024
1 parent 2a5e6ff commit 3a86443
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/components/schemes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default class Schemes extends React.Component {
return (
<label htmlFor="schemes">
<span className="schemes-title">Schemes</span>
<select onChange={ this.onChange } value={currentScheme}>
<select onChange={ this.onChange } value={currentScheme} id="schemes">
{ schemes.valueSeq().map(
( scheme ) => <option value={ scheme } key={ scheme }>{ scheme }</option>
).toArray()}
Expand Down
6 changes: 5 additions & 1 deletion src/core/plugins/oas3/components/servers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ const Servers = ({
return (
<div className="servers">
<label htmlFor="servers">
<select onChange={handleServerChange} value={currentServer}>
<select
onChange={handleServerChange}
value={currentServer}
id="servers"
>
{servers
.valueSeq()
.map((server) => (
Expand Down
11 changes: 10 additions & 1 deletion src/standalone/plugins/top-bar/components/TopBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,16 @@ class TopBar extends React.Component {
}
else {
formOnSubmit = this.downloadUrl
control.push(<input className={classNames.join(" ")} type="text" onChange={ this.onUrlChange } value={this.state.url} disabled={isLoading} />)
control.push(
<input
className={classNames.join(" ")}
type="text"
onChange={this.onUrlChange}
value={this.state.url}
disabled={isLoading}
id="download-url-input"
/>
)
control.push(<Button className="download-url-button" onClick={ this.downloadUrl }>Explore</Button>)
}

Expand Down

0 comments on commit 3a86443

Please sign in to comment.