Skip to content

Commit 6c08a01

Browse files
committed
Fix search field presentation in IE11
- Removed fixed height and allow element to size naturally via font-size and padding - Remove default "x" rendered on IE input fields
1 parent 5ad2e74 commit 6c08a01

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/plugins/search/component.js

+9-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ function style() {
3333
outline: none;
3434
border: none;
3535
width: 100%;
36-
padding: 0 7px;
37-
line-height: 36px;
38-
font-size: 14px;
36+
padding: 0.6em 7px;
37+
font-size: inherit;
3938
border: 1px solid transparent;
4039
}
4140
@@ -51,6 +50,13 @@ function style() {
5150
-moz-appearance: none;
5251
appearance: none;
5352
}
53+
54+
.search input::-ms-clear {
55+
display: none;
56+
height: 0;
57+
width: 0;
58+
}
59+
5460
.search .clear-button {
5561
cursor: pointer;
5662
width: 36px;

0 commit comments

Comments
 (0)