hide search input label, only visible to screen readers
This commit is contained in:
@ -148,20 +148,22 @@ export const Header = () => {
|
|||||||
<Link href="/foreninger">Foreninger</Link>
|
<Link href="/foreninger">Foreninger</Link>
|
||||||
</li>
|
</li>
|
||||||
<li className={styles.galtinn}>
|
<li className={styles.galtinn}>
|
||||||
<a
|
<a href="https://galtinn.neuf.no/" target="_blank">
|
||||||
href="https://galtinn.neuf.no/"
|
|
||||||
target="_blank"
|
|
||||||
>
|
|
||||||
<span>Mitt medlemskap</span>
|
<span>Mitt medlemskap</span>
|
||||||
<Icon type="externalLink" />
|
<Icon type="externalLink" />
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li className={styles.search}>
|
<li className={styles.search}>
|
||||||
<label>
|
<label htmlFor="search" className="sr-only">Søk</label>
|
||||||
<p>Søk</p>
|
<input
|
||||||
<input type="text" onKeyDown={handleSearch} placeholder="Søk" />
|
name="search"
|
||||||
<div className={styles.searchIcon}><Icon type="search" /></div>
|
type="text"
|
||||||
</label>
|
onKeyDown={handleSearch}
|
||||||
|
placeholder="Søk"
|
||||||
|
/>
|
||||||
|
<div className={styles.searchIcon}>
|
||||||
|
<Icon type="search" />
|
||||||
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -346,4 +346,15 @@ select {
|
|||||||
|
|
||||||
.accordion .blockContent {
|
.accordion .blockContent {
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sr-only {
|
||||||
|
position: absolute;
|
||||||
|
width: 1px;
|
||||||
|
height: 1px;
|
||||||
|
padding: 0;
|
||||||
|
margin: -1px;
|
||||||
|
overflow: hidden;
|
||||||
|
clip: rect(0, 0, 0, 0);
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user