Skip to content

Commit

Permalink
Merge pull request #931 from 0xabdulkhalid/closes-issue-#860
Browse files Browse the repository at this point in the history
feat: made search bar accessible on homepage 🔍✨
  • Loading branch information
panwar8279 committed Aug 3, 2023
2 parents 2110535 + 406825c commit 3c4f60b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Homepage/Homepage/Homepage.css
Original file line number Diff line number Diff line change
Expand Up @@ -654,3 +654,15 @@ input.search-input:hover {
margin-top:10px;
margin-bottom:20px;
}

.sr-only {
position: absolute !important;
width: 1px !important;
height: 1px !important;
padding: 0 !important;
margin: -1px !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
white-space: nowrap !important;
border-width: 0 !important;
}
3 changes: 3 additions & 0 deletions src/Homepage/Homepage/Homepage.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ function Homepage() {
<h1> Game on!!</h1>
</div>
{/* The content in the cards came from mapping data1, if you want to contribute a game kindly add it to data1 in the Data folder first*/}
<label htmlFor="search-games" className="sr-only">Search for your favourite Game</label>
<input
id="search-game"
name="search-game"
type="text"
className="search-input"
value={searchQuery}
Expand Down

0 comments on commit 3c4f60b

Please sign in to comment.