Skip to content

Commit 14000bb

Browse files
adding label for search bar
1 parent 9b142ac commit 14000bb

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/components/SearchBar/SearchBar.js

+10-6
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,18 @@ class SearchBar extends Component {
3030

3131
render() {
3232
return (
33-
<form className="search-bar"
34-
onSubmit={this.handleSubmit}>
33+
<form
34+
id='searchBar'
35+
className='search-bar'
36+
onSubmit={this.handleSubmit}
37+
>
3538
<input
36-
type="text"
37-
name="search-bar"
38-
placeholder="Search for farms or products..."
39+
type='text'
40+
name='search-bar'
41+
area-labelledby='searchBar'
42+
placeholder='Search for farms or products...'
3943
onChange={e => this.updateQuery(e.target.value)} />
40-
<button type="submit"><FontAwesomeIcon icon='search' /></button>
44+
<button type='submit'><FontAwesomeIcon icon='search' /></button>
4145
</form>
4246
)
4347
}

0 commit comments

Comments
 (0)