Skip to content

Commit c30be3e

Browse files
committed
search icon hover behavior + padding
1 parent 47fe571 commit c30be3e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/SearchForm/index.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ const t = await getUiTranslator(currentLocale);
1212
role="search"
1313
class="relative w-full h-full text-accent-type-color bg-accent-color border-accent-type-color border rounded-[20px] !mx-0"
1414
>
15-
<div class="absolute top-[6px] lg:top-[10px] left-[15px]">
15+
<div class="absolute top-[6px] lg:top-[10px] left-[11px]">
1616
<Icon kind="search" />
1717
</div>
1818
<input
1919
id="search-term"
2020
type="search"
2121
placeholder={t("Search") as string}
2222
name="term"
23-
class="placeholder-accent-type-color bg-transparent pl-[40px] py-[6px] md:py-[4px] lg:py-[8px] w-full rounded-[20px]"
23+
class="placeholder-accent-type-color bg-transparent pl-[40px] py-[6px] md:py-[4px] lg:py-[8px] w-full rounded-[20px] peer"
2424
aria-label="Search through site content"
2525
required
2626
/>
2727
<button
2828
type="submit"
2929
aria-label="Submit search"
30-
class="absolute px-[22px] right-0 top-0 py-[11px] lg:py-[13px]"
30+
class="invisible peer-valid:visible absolute pl-[22px] pr-[12px] right-0 top-0 py-[11px] lg:py-[13px]"
3131
><Icon kind="search-submit" /></button
3232
>
3333
</form>

0 commit comments

Comments
 (0)