From f97cdd363d1f107146bc1ffdeac621c5eef7c76e Mon Sep 17 00:00:00 2001 From: gyeongza Date: Thu, 3 Aug 2023 16:27:06 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=A6=AC=EB=B7=B0=20=EC=9A=94=EC=B2=AD?= =?UTF-8?q?=20=EA=B8=80=20=EC=9E=91=EC=84=B1=20aria-label=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/SelectSupportModal.tsx | 6 +++--- .../SupporterSelectItem/SupporterSelectItem.tsx | 17 +++++++++-------- frontend/src/components/common/Button.tsx | 4 +++- frontend/src/components/common/Modal.tsx | 2 +- frontend/src/pages/MainPage.tsx | 2 +- 5 files changed, 17 insertions(+), 14 deletions(-) diff --git a/frontend/src/components/SelectSupportModal.tsx b/frontend/src/components/SelectSupportModal.tsx index fb3aaddba..c991b25f0 100644 --- a/frontend/src/components/SelectSupportModal.tsx +++ b/frontend/src/components/SelectSupportModal.tsx @@ -23,11 +23,11 @@ const SelectSupportModal = ({ closeModal, handleSelectButton }: Props) => { 서포터를 선택해 주세요 ✅ 선택한 서포터가 확인 후 리뷰를 진행합니다. - - + + 프론트엔드 - + 백엔드 diff --git a/frontend/src/components/SupporterSelect/SupporterSelectItem/SupporterSelectItem.tsx b/frontend/src/components/SupporterSelect/SupporterSelectItem/SupporterSelectItem.tsx index 7191b433a..6be197f6d 100644 --- a/frontend/src/components/SupporterSelect/SupporterSelectItem/SupporterSelectItem.tsx +++ b/frontend/src/components/SupporterSelect/SupporterSelectItem/SupporterSelectItem.tsx @@ -37,25 +37,25 @@ const SupporterSelectItem = ({ }; return ( - + - {name} - {company} + {name} + {company} - {technicalTags.map((tag) => ( - + {technicalTags.map((tag, index) => ( + ))} - 완료한 리뷰 - {reviewCount} + 완료한 리뷰 + {reviewCount} - + github @@ -66,6 +66,7 @@ const SupporterSelectItem = ({ fontSize="12px" fontWeight={700} onClick={handleSelectedSupporter} + ariaLabel={`${name} 선택하기`} > 선택하기 diff --git a/frontend/src/components/common/Button.tsx b/frontend/src/components/common/Button.tsx index fb94574c1..e7b81b4de 100644 --- a/frontend/src/components/common/Button.tsx +++ b/frontend/src/components/common/Button.tsx @@ -7,9 +7,10 @@ interface Props extends React.HTMLProps { fontSize?: string | number; fontWeight?: number; type?: 'button' | 'submit' | 'reset'; + ariaLabel?: string; } -const Button = ({ colorTheme, children, width, height, type, fontSize, fontWeight, onClick }: Props) => { +const Button = ({ colorTheme, children, width, height, type, fontSize, fontWeight, onClick, ariaLabel }: Props) => { return ( {children} diff --git a/frontend/src/components/common/Modal.tsx b/frontend/src/components/common/Modal.tsx index 2558f933d..05f527898 100644 --- a/frontend/src/components/common/Modal.tsx +++ b/frontend/src/components/common/Modal.tsx @@ -9,7 +9,7 @@ interface Props extends React.HTMLProps { const Modal = ({ children, closeModal, width, height }: Props) => { return createPortal( - + {children} diff --git a/frontend/src/pages/MainPage.tsx b/frontend/src/pages/MainPage.tsx index bd8aa329c..8dcad1c24 100644 --- a/frontend/src/pages/MainPage.tsx +++ b/frontend/src/pages/MainPage.tsx @@ -27,7 +27,7 @@ const MainPage = () => { */} -