Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/components/ConfirmModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const ConfirmModal = ({
type="button"
className="body-m secondary-btn h-10 flex-1 basis-1/2"
onClick={onCancel}
aria-label={`${cancelText} 버튼`}
>
{cancelText}
</button>
Expand All @@ -45,6 +46,7 @@ const ConfirmModal = ({
className="primary-btn body-m h-10 flex-1 basis-1/2"
disabled={confirmDisabled}
onClick={onConfirm}
aria-label={`${confirmText} 버튼`}
>
{confirmText}
</button>
Expand Down
2 changes: 2 additions & 0 deletions src/components/MessageModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@ const MessageModal = ({
type="button"
className="body-m secondary-btn h-10 flex-1 basis-1/2"
onClick={onCancel}
aria-label={`${cancelText} 버튼`}
>
{cancelText}
</button>
<button
type="button"
className="primary-btn body-m h-10 flex-1 basis-1/2"
onClick={onComplete}
aria-label={`${completeText} 버튼`}
>
{completeText}
</button>
Expand Down
1 change: 1 addition & 0 deletions src/components/ReportModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ const ReportModal = ({ reportType, letterId, onClose }: ReportModalProps) => {
postReportRequest.reasonType === reason.type && 'bg-primary-2',
)}
onClick={() => handleReasonClick(reason.type)}
aria-label={`신고 사유: ${reason.name}`}
>
{reason.name}
</button>
Expand Down
1 change: 0 additions & 1 deletion src/pages/Admin/Filtering.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export default function FilteringManage() {
onClick={() => {
setAddInputShow(true);
}}
aria-label="추가하기"
>
<AddIcon className="h-4 w-4" />
</button>
Expand Down
1 change: 0 additions & 1 deletion src/pages/Admin/RollingPaper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export default function AdminRollingPaper() {
type="button"
className="ml-auto flex items-center gap-2 rounded-md text-black"
onClick={() => setActiveModal(true)}
aria-label='롤링페이퍼 생성하기'
>
<AddIcon />
롤링페이퍼 생성
Expand Down
7 changes: 1 addition & 6 deletions src/pages/Admin/components/AddRollingPaperModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,10 @@ export default function AddRollingPaperModal({ currentPage, onClose }: AddRollin
type="button"
className="secondary-btn text-gray-80 body-m flex-1 basis-1/2 px-3 py-2"
onClick={onClose}
aria-label="취소하기"
>
취소하기
</button>
<button
type="submit"
className="primary-btn body-m flex-1 basis-1/2 px-3 py-2"
aria-label="생성하기"
>
<button type="submit" className="primary-btn body-m flex-1 basis-1/2 px-3 py-2">
생성하기
</button>
</section>
Expand Down
5 changes: 4 additions & 1 deletion src/pages/Admin/components/FilterTextItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ export default function FilterTextItem({
<DeleteIcon className="h-5 w-5" />
</button>

<button onClick={() => handlePatchBadWordsUsed(badWord.id, badWord.isUsed)}>
<button
onClick={() => handlePatchBadWordsUsed(badWord.id, badWord.isUsed)}
aria-label={badWord.isUsed === 'true' ? '비속어 사용 활성화' : '비속어 사용 비활성화'}
>
{badWord.isUsed === 'true' ? (
<ToggleOn className="h-5 w-5" />
) : (
Expand Down
1 change: 1 addition & 0 deletions src/pages/Admin/components/MenuModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export default function MenuModal({
content.onClick();
setModalOpen(false);
}}
aria-label={content.title}
>
{content.title}
</button>
Expand Down
4 changes: 3 additions & 1 deletion src/pages/Admin/components/PagenationNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ export default function PagenationNavigation({
onClick={() => {
handlePageButtonClick(num);
}}
aria-label={`${num} 페이지로 이동`}
aria-current={nowPageNumberAt === num ? 'page' : undefined}
>
{num}
</button>
Expand All @@ -86,7 +88,7 @@ export default function PagenationNavigation({
onClick={() => {
handleNextButtonClick();
}}
aria-label="다음으로"
aria-label="다음 페이지로"
>
next
</button>
Expand Down
2 changes: 0 additions & 2 deletions src/pages/Admin/components/ReportHandlingModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export default function ReportHandlingModal({
onClick={() => {
setHandleModalOpen(false);
}}
aria-label="취소"
>
취소
</button>
Expand All @@ -67,7 +66,6 @@ export default function ReportHandlingModal({
handleDeleteList(selectedReportId);
setHandleModalOpen(false);
}}
aria-label="전송"
>
전송
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Admin/components/RollingPaperItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default function RollingPaperItem({ information, currentPage }: RollingPa
type="button"
className="hover:bg-gray-10 text-gray-60 rounded-md px-3 py-1 hover:text-black"
onClick={() => toggleStatus()}
aria-label="중단하기 / 진행하기"
aria-label={information.used ? '중단하기' : '진행하기'}
>
{information.used ? '중단하기' : '진행하기'}
</button>
Expand Down
5 changes: 1 addition & 4 deletions src/pages/Admin/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@ export default function Sidebar() {
</div>
))}
</section>
<button
className="mt-auto flex w-full items-center gap-3 px-5 py-3 hover:bg-amber-100"
aria-label="로그아웃"
>
<button className="mt-auto flex w-full items-center gap-3 px-5 py-3 hover:bg-amber-100">
<AlarmIcon className="text-gray-80 h-5 w-5" />
<span className="text-gray-80 body-l-m" onClick={() => logout()}>
로그아웃
Expand Down
7 changes: 7 additions & 0 deletions src/pages/Home/components/LetterActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ const LetterActions = () => {
key={index}
onClick={() => setActiveModal(item.title)}
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)]"
aria-label={
item.title === 'incomingLetters'
? '받은 편지함 열기'
: item.title === 'draft'
? '임시 저장 편지 열기'
: '공유 권한 관리'
}
>
{item.icon}
</button>
Expand Down
1 change: 0 additions & 1 deletion src/pages/Home/components/ShowShareAccessModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ const ShowShareAccessModal = ({ onClose }: ShowShareAccessModalProps) => {
className="text-gray-80 body-m flex h-10 w-full items-center justify-between gap-1 rounded-lg bg-white p-3"
key={proposal.shareProposalId}
onClick={() => handleNavigation(proposal.shareProposalId)}
aria-label="따숨님의 공유 요청"
>
<p>{proposal.requesterZipCode}님의 공유 요청</p>
</button>
Expand Down
8 changes: 6 additions & 2 deletions src/pages/LetterBoardDetail/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,16 @@ const Header = ({
return (
<header className="fixed top-0 z-40 w-full max-w-150">
<div className="flex h-16 items-center justify-between bg-white p-5">
<button onClick={() => navigate(-1)}>
<button onClick={() => navigate(-1)} aria-label="뒤로가기">
<ArrowLeftIcon className="text-primary-1 h-6 w-6" />
</button>
<div className="flex items-center gap-3">
<div className="flex items-center gap-1">
<button type="button" onClick={onToggleLike} aria-label="좋아요">
<button
type="button"
onClick={onToggleLike}
aria-label={isLike ? '좋아요 취소' : '좋아요'}
>
{isLike ? (
<LikeFilledIcon className="text-primary-1 h-6 w-6" />
) : (
Expand Down
2 changes: 0 additions & 2 deletions src/pages/LetterBoxDetail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ const LetterBoxDetailPage = () => {
type="button"
className="body-sb text-gray-60 mt-auto text-left underline dark:text-white"
onClick={() => setIsOpenDisConnectModal(true)}
aria-label="더 이상 편지하지 않을래요"
>
더 이상 편지하지 않을래요
</button>
Expand All @@ -223,7 +222,6 @@ const LetterBoxDetailPage = () => {
className="body-m primary-btn w-full py-2 text-black"
disabled={selected.length === 0}
onClick={() => setIsOpenShareModal(true)}
aria-label="공유하기"
>
공유하기
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function LetterDetailReplyButton({ letterDetail }: LetterDetailRe
navigate(`/letter/write/?letterId=${letterDetail.letterId}`);
}}
disabled={!letterDetail?.matched}
aria-label="편지 작성하기"
aria-label={letterDetail?.matched ? '편지 작성하기' : '대화가 종료된 편지입니다.'}
>
{letterDetail?.matched ? '편지 작성하기' : '대화가 종료된 편지입니다.'}
</button>
Expand Down
2 changes: 0 additions & 2 deletions src/pages/MyPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ const MyPage = () => {
onClick={() => {
logout();
}}
aria-label="로그아웃"
>
로그아웃
</button>
Expand All @@ -164,7 +163,6 @@ const MyPage = () => {
onClick={async () => {
setIsOpenModal(true);
}}
aria-label="탈퇴하기"
>
탈퇴하기
</button>
Expand Down
1 change: 0 additions & 1 deletion src/pages/NotFound/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export default function index() {
onClick={() => {
navigate(`/`);
}}
aria-label="집으로 돌아가기"
>
집으로 돌아가기
</button>
Expand Down
1 change: 0 additions & 1 deletion src/pages/Notifications/components/SendingModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export default function SendingModal({
<button
className="body-b mt-3 flex items-center justify-center"
onClick={() => navigate('/')}
aria-label="홈 화면으로 이동"
>
홈 화면으로 이동 {'>'}
</button>
Expand Down
1 change: 0 additions & 1 deletion src/pages/Notifications/components/ShareModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export default function ShareModal({
<button
className="body-b mt-3 flex items-center justify-center"
onClick={() => navigate('/')}
aria-label="홈 화면으로 이동"
>
홈 화면으로 이동 {'>'}
</button>
Expand Down
1 change: 0 additions & 1 deletion src/pages/Notifications/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ const NotificationsPage = () => {
onClick={() => {
handlePatchReadNotificationAll();
}}
aria-label="모두 읽음"
>
모두 읽음
</button>
Expand Down
1 change: 0 additions & 1 deletion src/pages/Onboarding/SetZipCode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const SetZipCode = ({
onClick={() => {
setIsZipCodeSet(true);
}}
aria-label="다음으로"
>
다음으로
</button>
Expand Down
1 change: 0 additions & 1 deletion src/pages/Onboarding/WelcomeLetter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export default function index() {
navigate(`/`);
sessionStorage.removeItem('onBoarding');
}}
aria-label="홈으로 가기"
>
홈으로 가기
</button>
Expand Down
1 change: 0 additions & 1 deletion src/pages/RandomLetters/components/CoolTime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export default function CoolTime({
onClick={() => {
navigate('/');
}}
aria-label="홈으로 돌아가기"
>
홈으로 돌아가기
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/RandomLetters/components/Matched.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default function Matched({
handleDeleteRandomLetterMatching();
}}
disabled={isDisabled}
aria-label="취소버튼"
aria-label={isDisabled ? '취소 시간이 지났습니다.' : '답장 취소하기'}
>
{isDisabled
? '취소 시간이 지났습니다.'
Expand Down
1 change: 0 additions & 1 deletion src/pages/RandomLetters/components/MatchedLetter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const MatchedLetter = ({ matchedLetter }: { matchedLetter: MatchedLetter }) => {
state: { randomMatched: true, matchedLetter: matchedLetter },
});
}}
aria-label="편지 작성 버튼"
>
편지 작성하기
</button>
Expand Down
11 changes: 2 additions & 9 deletions src/pages/RandomLetters/components/MatchingSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,9 @@ export default function MatchingSelect({
onClick={() => {
handleGetRandomLetters(selectedCategory);
}}
aria-label="리스트 새로고침"
>
<img src={RestartIcon} alt="재시작 아이콘" />
<span
className="caption-sb text-gray-30 dark:text-white"
aria-label="리스트 새로고침 버튼"
>
리스트 새로고침
</span>
<span className="caption-sb text-gray-30 dark:text-white">리스트 새로고침</span>
</button>
<div className="w-full max-w-[300px]">
{randomLetters.length === 0 ? (
Expand All @@ -67,7 +61,6 @@ export default function MatchingSelect({
<button
className="caption-b text-gray-60"
onClick={() => navigate('/letter/write')}
aria-label="작성하러 가기"
>{`작성하러 가기 >`}</button>
</div>
</LetterWrapper>
Expand Down Expand Up @@ -111,7 +104,7 @@ export default function MatchingSelect({
selectedCategory === category.category && 'bg-primary-1 text-white',
)}
key={idx}
aria-label="카테고리 제목"
aria-label={category.title}
>
{category.title}
</button>
Expand Down
2 changes: 0 additions & 2 deletions src/pages/RandomLetters/components/MatchingSelectModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ function MatchingSelectModal({
onClick={() => {
setOpenModal(false);
}}
aria-label="거부하기"
>
거부하기
</button>
Expand All @@ -57,7 +56,6 @@ function MatchingSelectModal({
writerId: `${selectedLetter.writerId}`,
});
}}
aria-label="승인하기"
>
승인하기
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/RollingPaper/components/CommentDetailModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const CommentDetailModal = ({
type="button"
className="body-b ml-auto text-white"
onClick={handleButtonClick}
aria-label="삭제하기 / 신고하기"
aria-label={isWriter ? '삭제하기' : '신고하기'}
>
{isWriter ? '삭제하기' : '신고하기'}
</button>
Expand Down
1 change: 0 additions & 1 deletion src/pages/RollingPaper/components/WriteCommentButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ const WriteCommentButton = ({ rollingPaperId }: WriteCommentButtonProps) => {
type="button"
className="sticky bottom-8 z-10 mt-auto -mb-4 self-start overflow-hidden rounded-sm"
onClick={() => setActiveMessageModal(true)}
aria-label="편지 쓰기"
>
<img src={EnvelopeImg} alt="편지지 이미지" className="h-12 w-auto opacity-70" />
<p className="caption-sb absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 whitespace-nowrap text-white">
Expand Down
2 changes: 0 additions & 2 deletions src/pages/Share/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ const ShareApprovalPage = () => {
type="button"
className="body-m secondary-btn h-10 flex-1 basis-1/2"
onClick={() => handleProposalApproval('reject')}
aria-label="거부하기"
>
거부하기
</button>
Expand All @@ -105,7 +104,6 @@ const ShareApprovalPage = () => {
type="button"
className="primary-btn body-m h-10 flex-1 basis-1/2"
onClick={() => handleProposalApproval('approve')}
aria-label="승인하기"
>
승인하기
</button>
Expand Down
1 change: 0 additions & 1 deletion src/pages/Write/CategorySelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ export default function CategorySelect({
setToastActive({ title: '카테고리를 선택해주세요.', toastType: 'Warning' });
}
}}
aria-label="편지 전송"
>
편지 전송
</button>
Expand Down