Skip to content

Commit fdc1dae

Browse files
committed
fix: 누락된 aria-label 추가
1 parent 26ee31c commit fdc1dae

File tree

7 files changed

+20
-2
lines changed

7 files changed

+20
-2
lines changed

src/components/ConfirmModal.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const ConfirmModal = ({
3737
type="button"
3838
className="body-m secondary-btn h-10 flex-1 basis-1/2"
3939
onClick={onCancel}
40+
aria-label={`${cancelText} 버튼`}
4041
>
4142
{cancelText}
4243
</button>
@@ -45,6 +46,7 @@ const ConfirmModal = ({
4546
className="primary-btn body-m h-10 flex-1 basis-1/2"
4647
disabled={confirmDisabled}
4748
onClick={onConfirm}
49+
aria-label={`${confirmText} 버튼`}
4850
>
4951
{confirmText}
5052
</button>

src/components/MessageModal.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,15 @@ const MessageModal = ({
4444
type="button"
4545
className="body-m secondary-btn h-10 flex-1 basis-1/2"
4646
onClick={onCancel}
47+
aria-label={`${cancelText} 버튼`}
4748
>
4849
{cancelText}
4950
</button>
5051
<button
5152
type="button"
5253
className="primary-btn body-m h-10 flex-1 basis-1/2"
5354
onClick={onComplete}
55+
aria-label={`${completeText} 버튼`}
5456
>
5557
{completeText}
5658
</button>

src/components/ReportModal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ const ReportModal = ({ reportType, letterId, onClose }: ReportModalProps) => {
7474
postReportRequest.reasonType === reason.type && 'bg-primary-2',
7575
)}
7676
onClick={() => handleReasonClick(reason.type)}
77+
aria-label={`신고 사유: ${reason.name}`}
7778
>
7879
{reason.name}
7980
</button>

src/pages/Admin/components/FilterTextItem.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ export default function FilterTextItem({
7777
<DeleteIcon className="h-5 w-5" />
7878
</button>
7979

80-
<button onClick={() => handlePatchBadWordsUsed(badWord.id, badWord.isUsed)}>
80+
<button
81+
onClick={() => handlePatchBadWordsUsed(badWord.id, badWord.isUsed)}
82+
aria-label={badWord.isUsed === 'true' ? '비속어 사용 활성화' : '비속어 사용 비활성화'}
83+
>
8184
{badWord.isUsed === 'true' ? (
8285
<ToggleOn className="h-5 w-5" />
8386
) : (

src/pages/Admin/components/MenuModal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export default function MenuModal({
3838
content.onClick();
3939
setModalOpen(false);
4040
}}
41+
aria-label={content.title}
4142
>
4243
{content.title}
4344
</button>

src/pages/Admin/components/PagenationNavigation.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ export default function PagenationNavigation({
7575
onClick={() => {
7676
handlePageButtonClick(num);
7777
}}
78+
aria-label={`${num} 페이지로 이동`}
79+
aria-current={nowPageNumberAt === num ? 'page' : undefined}
7880
>
7981
{num}
8082
</button>
@@ -86,7 +88,7 @@ export default function PagenationNavigation({
8688
onClick={() => {
8789
handleNextButtonClick();
8890
}}
89-
aria-label="다음으로"
91+
aria-label="다음 페이지로"
9092
>
9193
next
9294
</button>

src/pages/Home/components/LetterActions.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ const LetterActions = () => {
3535
key={index}
3636
onClick={() => setActiveModal(item.title)}
3737
className="flex h-12 w-12 items-center justify-center gap-[10px] rounded-full bg-white/40 text-gray-50 shadow-[inset_0_-2px_2px_0_rgba(208,169,14,0.30),_0_0px_4px_0_rgba(199,164,29,0.30)] dark:text-white dark:shadow-[inset_0_-2px_2px_0_rgba(255,255,255,0.30),_0_0px_4px_0_rgba(180,180,180,0.30)]"
38+
aria-label={
39+
item.title === 'incomingLetters'
40+
? '받은 편지함 열기'
41+
: item.title === 'draft'
42+
? '임시 저장 편지 열기'
43+
: '공유 권한 관리'
44+
}
3845
>
3946
{item.icon}
4047
</button>

0 commit comments

Comments
 (0)