Skip to content

Commit 8f3b07f

Browse files
committed
Header: Use custom focus styling
The current focus outline is using a rectangle, while the input is rounded, which looks very ugly. This commit uses a `box-shadow` instead of the regular `outline` to solve this issue.
1 parent 272513f commit 8f3b07f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/components/header.module.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ input.search {
5858
background-size: 14px 15px;
5959
border-radius: 15px;
6060
box-shadow: none;
61+
transition: box-shadow 150ms;
62+
63+
&:focus {
64+
outline: none;
65+
box-shadow: 0 0 0 4px var(--yellow);
66+
}
6167
}
6268

6369
.mobile-search {

0 commit comments

Comments
 (0)