Skip to content

Commit

Permalink
feat: rendre le texte de recherche par défaut plus visible (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
adipasquale authored Nov 29, 2021
1 parent 28fb515 commit 1e6ed29
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/components/SearchBar.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,15 @@ input.search {
display: inline-block;
flex: 1;
padding: 0 1rem;

&::placeholder{
opacity: .9;
text-decoration: underline dotted;
}

&:active, &:hover, &:focus {
&::placeholder {
opacity: 0.7;
}
}
}
2 changes: 1 addition & 1 deletion src/components/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const SearchBar: React.FC<Props> = ({ value, onChange }) => {
<input
value={value}
type="text"
placeholder="🔍 Rechercher un numéro de dossier, un dossier, une société, un enfant"
placeholder="Rechercher un numéro de dossier, un dossier, une société, un enfant"
className={styles.search}
onChange={onChange}
/>
Expand Down

0 comments on commit 1e6ed29

Please sign in to comment.