Skip to content

Commit 2967bfa

Browse files
jgorfine-zendeskluis-almeida
authored andcommitted
feat: started working on autofill colors
1 parent 1fa9e54 commit 2967bfa

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

style.css

+7-1
Original file line numberDiff line numberDiff line change
@@ -1104,6 +1104,12 @@ ul {
11041104
-webkit-appearance: none;
11051105
}
11061106

1107+
.search input[type="search"]:-webkit-autofill, .search input[type="search"]:-webkit-autofill:hover,
1108+
.search input[type="search"] input[type="search"]:-webkit-autofill:focus {
1109+
-webkit-box-shadow: 0 0 0 1000px #fff inset;
1110+
border-right-color: transparent;
1111+
}
1112+
11071113
.search input[type="search"],
11081114
.search .clear-button {
11091115
background-color: #fff;
@@ -1139,7 +1145,7 @@ ul {
11391145
justify-content: center;
11401146
padding: 0 15px;
11411147
pointer-events: none;
1142-
transition: .12s ease-in-out;
1148+
transition: border .12s ease-in-out, color .12s ease-in-out;
11431149
}
11441150

11451151
[dir="rtl"] .search .clear-button {

styles/_search.scss

+8-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ $icon-color: #777;
3838
-webkit-appearance: none;
3939
}
4040

41+
&:-webkit-autofill,
42+
&:-webkit-autofill:hover,
43+
input[type="search"]:-webkit-autofill:focus {
44+
-webkit-box-shadow: 0 0 0 1000px #fff inset;
45+
border-right-color: transparent;
46+
}
47+
4148
}
4249

4350
input[type="search"],
@@ -76,7 +83,7 @@ $icon-color: #777;
7683
justify-content: center;
7784
padding: 0 15px;
7885
pointer-events: none;
79-
transition: .12s ease-in-out;
86+
transition: border .12s ease-in-out, color .12s ease-in-out;
8087

8188
[dir="rtl"] & {
8289
border-bottom-right-radius: 0;

0 commit comments

Comments
 (0)