[사전 미션 - 워밍업] - 다이앤(고다은) 미션 제출합니다. #57
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Step 1: 언어 설정하기
index.html의 을 <html lang="ko"로 변경
Step 2: 시맨틱 태그 사용하기
,Step 3: 버튼 접근성 향상시키기
증가/감소 버튼에 aria-label 추가
Step 4: 변경 사항에 대한 실시간 알림 추가하기
버튼 클릭 시 음성 안내를 위한 숨겨진 aria-live="assertive" 영역 추가
클릭할 때마다 "성인 승객 증가/감소" 음성 제공
Step 5: 최소/최대 값 도달 시 상태 메시지 알림 추가하기
최대값(3명) 도달 시: "최대 승객수 입니다" 또는 "성인 승객 증가, 최대 승객 수에 도달했습니다"
최소값(1명) 도달 시: "최소 승객수 입니다"
.visually-hidden 클래스를 사용한 스크린 리더 전용 메시지 영역
TalkBack은 보이스오버와 좀 다르게 읽어주는것 같더라고요. 같은 요소를 클릭했을때 반복으로 안읽어주는 불편함이 있었습니다.