Skip to content

Commit 2c4e218

Browse files
committed
Correct the outline of search inputs in Safari (necolas#575)
After modifying search input with -webkit-appearance: textfield, the focus outline is remaining with `outline-offset: 0`, but should be `-2px` like other textfield inputs.
1 parent 8ed3140 commit 2c4e218

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

normalize.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,11 +381,13 @@ textarea {
381381
}
382382

383383
/**
384-
* Correct the odd appearance of search inputs in Chrome and Safari.
384+
* 1. Correct the odd appearance in Chrome and Safari.
385+
* 2. Correct the outline style in Safari.
385386
*/
386387

387388
[type="search"] {
388-
-webkit-appearance: textfield;
389+
-webkit-appearance: textfield; /* 1 */
390+
outline-offset: -2px; /* 2 */
389391
}
390392

391393
/**

0 commit comments

Comments
 (0)