From 979c3373431e7e0115c31c49f92d98db5a4b9c84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=AC=B8=EC=9E=AC=EC=97=B0?= Date: Wed, 11 Jun 2025 13:18:25 +0900 Subject: [PATCH 1/2] =?UTF-8?q?KW-646/fix:=20=EB=8B=A4=ED=81=AC=EB=AA=A8?= =?UTF-8?q?=EB=93=9C=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/_Admin/css/AdminLoginBox.css | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/_Admin/css/AdminLoginBox.css b/src/components/_Admin/css/AdminLoginBox.css index cb4df1a..3abfb16 100644 --- a/src/components/_Admin/css/AdminLoginBox.css +++ b/src/components/_Admin/css/AdminLoginBox.css @@ -85,9 +85,15 @@ body.dark-mode .admin-login-button:hover { background-color: #144c2b; } -input.admin-login-input:-webkit-autofill, -input.admin-login-input:-webkit-autofill:focus, -input.admin-login-input:-webkit-autofill:hover { +input.admin-login-input:-webkit-autofill { + -webkit-box-shadow: 0 0 0 1000px #fff inset !important; + -webkit-text-fill-color: #000 !important; + caret-color: #000 !important; + border: 1px solid #ccc !important; + transition: background-color 0s ease-in-out 0s; +} + +body.dark-mode input.admin-login-input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px hsl(0, 0%, 16%) inset !important; -webkit-text-fill-color: #fff !important; caret-color: #fff !important; From 93c844834120b774b0398fba4f7e7a8b2cb36d2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=AC=B8=EC=9E=AC=EC=97=B0?= Date: Wed, 11 Jun 2025 13:28:41 +0900 Subject: [PATCH 2/2] =?UTF-8?q?KW-646/fix:=20=EB=8B=A4=ED=81=AC=EB=AA=A8?= =?UTF-8?q?=EB=93=9C=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EC=83=88=EB=A1=9C=EA=B3=A0=EC=B9=A8=20=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/_Admin/AdminLoginBox.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/_Admin/AdminLoginBox.tsx b/src/components/_Admin/AdminLoginBox.tsx index 498580e..0069e8d 100644 --- a/src/components/_Admin/AdminLoginBox.tsx +++ b/src/components/_Admin/AdminLoginBox.tsx @@ -1,4 +1,4 @@ -import React, { useState } from "react"; +import React, { useEffect, useState } from "react"; import { useNavigate } from "react-router-dom"; import "./css/AdminLoginBox.css"; import ReusableButton from "../buttons/ReusableButton"; @@ -17,6 +17,15 @@ const AdminLogin: React.FC = ({ onLogin }) => { const [error, setError] = useState(""); const navigate = useNavigate(); + useEffect(() => { + const darkMode = localStorage.getItem("theme") === "dark"; + if (darkMode) { + document.body.classList.add("dark-mode"); + } else { + document.body.classList.remove("dark-mode"); + } + }, []); + const handleLogin = async () => { try { const response = await adminLogin({