Skip to content

Commit

Permalink
PR #22: fixes unfocusable header #10 => dev
Browse files Browse the repository at this point in the history
fix: unfocusable header #10
  • Loading branch information
savio591 authored Nov 11, 2021
2 parents e342ba8 + 3ee18a5 commit c9d49e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/Header/SearchBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,21 @@ import { FaSearch } from 'react-icons/fa'

export function SearchBox(): JSX.Element {
return (
<div className="input-group">
<div className="input-group px-5">
<div className="input-group-prepend">
<span className="input-group-text h-100 bg-transparent border-0 fw-light">
<FaSearch color="white" />
</span>
</div>
<label className="visually-hidden-focusable" htmlFor="search">
Pesquisar produtos
</label>
<input
type="text"
className="form-control border-0 bg-transparent h-100"
aria-label="search"
placeholder="Pesquisar produtos"
id="search"
/>
</div>
)
Expand Down
1 change: 1 addition & 0 deletions src/components/Header/menu.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ header.header {
max-height: header-size-height(mobile);
height: header-size-height(mobile);
backdrop-filter: blur(4px);
z-index: 1;

@media (min-width: map.get($grid-breakpoints, 'sm')) {
max-height: header-size-height(desktop);
Expand Down

0 comments on commit c9d49e8

Please sign in to comment.