refactor: use the sr-only class to visually hide element (#51931)

pull/51904/head
Huyen Nguyen 2023-10-13 01:35:37 +07:00 committed by GitHub
parent 61f9c5bab5
commit e8d29bfc5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 6 deletions

View File

@ -55,11 +55,6 @@
margin: 0;
}
.exam-answer-input-hidden {
position: absolute;
left: -9999px;
}
.exam-answer-input-visible {
margin-inline-end: 15px;
position: relative;

View File

@ -423,7 +423,7 @@ class ShowExam extends Component<ShowExamProps, ShowExamState> {
userExamQuestions[currentQuestionIndex].answer
.id === id
}
className='exam-answer-input-hidden'
className='sr-only'
name={id}
onChange={() =>
this.selectAnswer(