refactor: use the sr-only class to visually hide element (#51931)
parent
61f9c5bab5
commit
e8d29bfc5b
|
@ -55,11 +55,6 @@
|
|||
margin: 0;
|
||||
}
|
||||
|
||||
.exam-answer-input-hidden {
|
||||
position: absolute;
|
||||
left: -9999px;
|
||||
}
|
||||
|
||||
.exam-answer-input-visible {
|
||||
margin-inline-end: 15px;
|
||||
position: relative;
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue