Skip to content

Commit

Permalink
Refactor: aria-label 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
JiminKim-dev committed May 25, 2022
1 parent d32d193 commit df23d69
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
8 changes: 5 additions & 3 deletions fe/src/components/Header/SearchBar/Period.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ function Period() {
<PeriodContainer>
<CommonWrapper>
<CheckIn>체크인</CheckIn>
<Btn>날짜 입력</Btn>
<Btn aria-label="체크인 날짜 입력 버튼">날짜 입력</Btn>
</CommonWrapper>
<CommonWrapper>
<CheckOut>체크아웃</CheckOut>
<Btn>날짜 입력</Btn>
<Btn aria-label="체크아웃 날짜 입력 버튼">날짜 입력</Btn>
</CommonWrapper>
<StyledCrossIcon />
<button type="button" aria-label="날짜 입력 취소 버튼">
<StyledCrossIcon />
</button>
</PeriodContainer>
);
}
Expand Down
6 changes: 4 additions & 2 deletions fe/src/components/Header/SearchBar/Personnel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ function Personnel() {
<PersonnelContainer>
<CommonWrapper>
<Label>인원</Label>
<Btn>게스트 추가</Btn>
<Btn aria-label="게스트 추가 버튼">게스트 추가</Btn>
</CommonWrapper>
<StyledCrossIcon />
<button type="button" aria-label="게스트 추가 취소 버튼">
<StyledCrossIcon />
</button>
</PersonnelContainer>
);
}
Expand Down
6 changes: 4 additions & 2 deletions fe/src/components/Header/SearchBar/Price.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ function Price() {
<PriceContainer>
<PriceWrapper>
<Label>요금</Label>
<Btn>₩100,000~1,000,000</Btn>
<Btn aria-label="요금 입력 버튼">₩100,000~1,000,000</Btn>
</PriceWrapper>
<StyledCrossIcon />
<button type="button" aria-label="요금 입력 취소 버튼">
<StyledCrossIcon />
</button>
</PriceContainer>
);
}
Expand Down
2 changes: 1 addition & 1 deletion fe/src/components/Header/SearchBar/searchBar.styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const CheckIn = styled(Label)`

export const CheckOut = styled(CheckIn)``;

export const SearchButton = styled.div`
export const SearchButton = styled.button`
display: flex;
align-items: center;
justify-content: center;
Expand Down

0 comments on commit df23d69

Please sign in to comment.