Skip to content

Commit 35303fb

Browse files
committed
fix: 부적절하게 사용된 aria-label 수정
1 parent fdc1dae commit 35303fb

File tree

6 files changed

+11
-7
lines changed

6 files changed

+11
-7
lines changed

src/pages/Admin/components/RollingPaperItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default function RollingPaperItem({ information, currentPage }: RollingPa
6969
type="button"
7070
className="hover:bg-gray-10 text-gray-60 rounded-md px-3 py-1 hover:text-black"
7171
onClick={() => toggleStatus()}
72-
aria-label="중단하기 / 진행하기"
72+
aria-label={information.used ? '중단하기' : '진행하기'}
7373
>
7474
{information.used ? '중단하기' : '진행하기'}
7575
</button>

src/pages/LetterBoardDetail/components/Header.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,16 @@ const Header = ({
3030
return (
3131
<header className="fixed top-0 z-40 w-full max-w-150">
3232
<div className="flex h-16 items-center justify-between bg-white p-5">
33-
<button onClick={() => navigate(-1)}>
33+
<button onClick={() => navigate(-1)} aria-label="뒤로가기">
3434
<ArrowLeftIcon className="text-primary-1 h-6 w-6" />
3535
</button>
3636
<div className="flex items-center gap-3">
3737
<div className="flex items-center gap-1">
38-
<button type="button" onClick={onToggleLike} aria-label="좋아요">
38+
<button
39+
type="button"
40+
onClick={onToggleLike}
41+
aria-label={isLike ? '좋아요 취소' : '좋아요'}
42+
>
3943
{isLike ? (
4044
<LikeFilledIcon className="text-primary-1 h-6 w-6" />
4145
) : (

src/pages/LetterDetail/components/LetterDetailReplyButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function LetterDetailReplyButton({ letterDetail }: LetterDetailRe
1212
navigate(`/letter/write/?letterId=${letterDetail.letterId}`);
1313
}}
1414
disabled={!letterDetail?.matched}
15-
aria-label="편지 작성하기"
15+
aria-label={letterDetail?.matched ? '편지 작성하기' : '대화가 종료된 편지입니다.'}
1616
>
1717
{letterDetail?.matched ? '편지 작성하기' : '대화가 종료된 편지입니다.'}
1818
</button>

src/pages/RandomLetters/components/Matched.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export default function Matched({
110110
handleDeleteRandomLetterMatching();
111111
}}
112112
disabled={isDisabled}
113-
aria-label="취소버튼"
113+
aria-label={isDisabled ? '취소 시간이 지났습니다.' : '답장 취소하기'}
114114
>
115115
{isDisabled
116116
? '취소 시간이 지났습니다.'

src/pages/RandomLetters/components/MatchingSelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export default function MatchingSelect({
111111
selectedCategory === category.category && 'bg-primary-1 text-white',
112112
)}
113113
key={idx}
114-
aria-label="카테고리 제목"
114+
aria-label={category.title}
115115
>
116116
{category.title}
117117
</button>

src/pages/RollingPaper/components/CommentDetailModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const CommentDetailModal = ({
2828
type="button"
2929
className="body-b ml-auto text-white"
3030
onClick={handleButtonClick}
31-
aria-label="삭제하기 / 신고하기"
31+
aria-label={isWriter ? '삭제하기' : '신고하기'}
3232
>
3333
{isWriter ? '삭제하기' : '신고하기'}
3434
</button>

0 commit comments

Comments
 (0)