From 645a674fddd6d230df816dc70925aea6266d8e7a Mon Sep 17 00:00:00 2001 From: Hyerin <125418818+ooherin@users.noreply.github.com> Date: Mon, 9 Dec 2024 00:11:16 +0900 Subject: [PATCH 1/3] =?UTF-8?q?[FE]=20=EC=B2=B4=ED=81=AC=EB=A6=AC=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20=20=EB=B0=B0=EB=84=88=20=ED=9B=84=EB=B2=84=20?= =?UTF-8?q?=EC=83=89=EC=83=81=EC=9D=84=20=EB=84=A3=EB=8A=94=EB=8B=A4.=20?= =?UTF-8?q?=20(#1054)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ChecklistList/CustomBanner.tsx | 16 +++++++++++++--- frontend/src/pages/ChecklistListPage.tsx | 4 +++- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/ChecklistList/CustomBanner.tsx b/frontend/src/components/ChecklistList/CustomBanner.tsx index 203bd5e5..4cca8e46 100644 --- a/frontend/src/components/ChecklistList/CustomBanner.tsx +++ b/frontend/src/components/ChecklistList/CustomBanner.tsx @@ -10,16 +10,22 @@ interface Props { buttonText: string; Icon: React.ReactElement; buttonDetailText: string; + hoverButtonColor: string; } -const CustomBanner = ({ onClick, Icon, title, buttonColor, buttonText, buttonDetailText }: Props) => { +const CustomBanner = ({ hoverButtonColor, onClick, Icon, title, buttonColor, buttonText, buttonDetailText }: Props) => { return ( {Icon} {title} - + ); }; @@ -51,7 +57,7 @@ const S = { Title: styled.span` ${flexCenter} `, - Button: styled(Button)<{ buttonColor: string }>` + Button: styled(Button)<{ buttonColor: string; hoverButtonColor: string }>` padding: 0.6rem 1rem; background-color: ${({ buttonColor }) => buttonColor}; @@ -62,5 +68,9 @@ const S = { font-size: ${({ theme }) => theme.text.size.small}; cursor: pointer; + + &:hover { + background-color: ${({ hoverButtonColor }) => hoverButtonColor}; + } `, }; diff --git a/frontend/src/pages/ChecklistListPage.tsx b/frontend/src/pages/ChecklistListPage.tsx index ed833fa5..90451a8c 100644 --- a/frontend/src/pages/ChecklistListPage.tsx +++ b/frontend/src/pages/ChecklistListPage.tsx @@ -47,14 +47,16 @@ const ChecklistListPage = () => { buttonColor={theme.palette.green500} buttonText="편집하기" buttonDetailText={'체크리스트 질문을 편집하려면 이 버튼을 누르세요.'} + hoverButtonColor={theme.palette.green600} />