fix: add missing HTML id attributes (#9563)

Refs #9523

Co-authored-by: Reges Mendes <reges.mendes@gmail.com>
This commit is contained in:
Vladimír Gorej
2024-02-09 10:53:21 +01:00
committed by GitHub
parent 2a5e6ff6a4
commit 3a86443322
3 changed files with 16 additions and 3 deletions

View File

@@ -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()}

View File

@@ -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) => (

View File

@@ -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>)
}