Browse Source

fix(frontend): override browser default background color on autofilled login inputs (#4478)

Cheng Ho Ming, Eric 4 giờ trước cách đây
mục cha
commit
6e2816d035
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  1. 7 0
      frontend/src/pages/login/LoginPage.vue

+ 7 - 0
frontend/src/pages/login/LoginPage.vue

@@ -469,6 +469,13 @@ function cycleTheme() {
   font-weight: 500;
 }
 
+.login-form :deep(input.ant-input:-webkit-autofill) {
+  -webkit-text-fill-color: var(--color-text) !important;
+  -webkit-box-shadow: 0 0 0 1000px var(--bg-card) inset !important;
+  box-shadow: 0 0 0 1000px var(--bg-card) inset !important;
+  transition: background-color 9999s ease-in-out 0s, color 9999s ease-in-out 0s;
+}
+
 .submit-row {
   margin-bottom: 0;
 }