🎨 Recherche dans les règles: un peu de design

pull/878/head
Loïc Guillois 2020-02-18 15:58:34 +01:00
parent 70d09e6345
commit 7736b15f98
2 changed files with 18 additions and 3 deletions

View File

@ -193,7 +193,22 @@ export default function SearchBar({
return (
<>
<input
type="text"
type="search"
css={`
padding: 0.4rem;
margin: 0.2rem 0;
width: 100%;
border: 1px solid var(--lighterTextColor);
border-radius: 0.3rem;
color: inherit;
font-size: inherit;
transition: border-color 0.1s;
position: relative;
:focus {
border-color: var(--color);
}
`}
value={input}
placeholder={i18n.t('Entrez des mots clefs ici')}
onKeyDown={e => handleKeyDown(e)}

View File

@ -31,9 +31,9 @@ export default function SearchButton({ invisibleButton }: SearchButtonProps) {
return visible ? (
<Overlay onClose={close}>
<h2>
<h1>
<Trans>Chercher dans la documentation</Trans>
</h2>
</h1>
<SearchBar showDefaultList={false} finally={close} rules={flatRules} />
</Overlay>
) : invisibleButton ? null : (