Skip to content

Commit

Permalink
fix accessibilty issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nero-adaware committed Feb 13, 2019
1 parent e6c45ef commit 555fe73
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
10 changes: 6 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<!-- Favicons -->
<link rel="apple-touch-icon" sizes="57x57" href="/images/favicon.ico/apple-icon-57x57.png">
Expand Down Expand Up @@ -66,7 +66,8 @@ <h1>An <a href="https://github.com/PaystackHQ/nigerialogos" target="_blank">open

<div class="searchbar">
<div class="select">
<select name="Categories">
<label for="Categories" class="visuallyhidden"><span>Categories</span></label>
<select name="Categories" id="Categories">
<option value="All Categories">All Categories</option>
<option value="Banking / Financial Services">Banking / Financial Services</option>
<option value="Ecommerce / Construction / Real Estate">Ecommerce / Construction / Real Estate</option>
Expand All @@ -75,9 +76,10 @@ <h1>An <a href="https://github.com/PaystackHQ/nigerialogos" target="_blank">open
</select>
</div>
<div class="search">
<label>
<input type="text" name="search" placeholder="search for a company">
<label for="search" class="visuallyhidden">
<span>Search</span>
</label>
<input type="text" name="search" id="search" placeholder="search for a company">
<div class="results">All Results</div>
</div>
</div>
Expand Down
9 changes: 9 additions & 0 deletions scss/layout/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,13 @@ header {
}
}
}
.visuallyhidden{
position: absolute;
clip: rect(1px, 1px, 1px, 1px);
padding: 0;
border: 0;
height: 1px;
width: 1px;
overflow: hidden;
}
}

0 comments on commit 555fe73

Please sign in to comment.