-
Notifications
You must be signed in to change notification settings - Fork 843
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Safari’s rendering of search inputs
- Loading branch information
cchaos
committed
Jun 5, 2018
1 parent
30f58c3
commit 8213645
Showing
2 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
/* | ||
* 1. Fix for Safari to ensure that it renders like a normal text input | ||
* and doesn't add extra spacing around text | ||
*/ | ||
|
||
.euiFieldSearch { | ||
@include euiFormControlStyle; | ||
@include euiFormControlWithIcon($isIconOptional: false); | ||
@include euiFormControlIsLoading; | ||
// This is a hack, since in Safari the search boxes were ignoring | ||
// padding. Get Dave Snider involved. It improves rendering significantly | ||
// although the padding still looks a bit off. | ||
-webkit-appearance: textfield; | ||
|
||
-webkit-appearance: textfield; /* 1 */ | ||
|
||
&::-webkit-search-decoration { | ||
-webkit-appearance: none; /* 1 */ | ||
} | ||
} |