Skip to content

Commit 0130f4a

Browse files
committed
(fix) Autofill input style
1 parent 55557f8 commit 0130f4a

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/VueInputUi/index.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@
222222
border-radius: $border-radius;
223223
font-size: 14px;
224224
z-index: 0;
225+
caret-color: $primary-color;
225226
226227
&:not(.textarea) {
227228
height: 42px;
@@ -546,11 +547,12 @@
546547
}
547548
}
548549
549-
input:-webkit-autofill,
550-
input:-webkit-autofill:hover,
551-
input:-webkit-autofill:focus,
552-
input:-webkit-autofill:active {
553-
box-shadow: 0 0 0 30px $second-color inset;
550+
&__input:-webkit-autofill,
551+
&__input:-webkit-autofill:hover,
552+
&__input:-webkit-autofill:focus,
553+
&__input:-webkit-autofill:active {
554+
box-shadow: 0 0 0 1000px $bg-color inset;
555+
-webkit-text-fill-color: $second-color;
554556
}
555557
}
556558
</style>

0 commit comments

Comments
 (0)