Loading frontend/src/components/Questionnaire/AutoFreeFormQuestion.tsx +3 −2 Original line number Diff line number Diff line Loading @@ -12,7 +12,8 @@ const label = css` ` const textArea = css` resize: none; resize: none !important; min-height: 7rem; ` const highlight = (correct: boolean) => css` border-bottom: 0.2rem solid ${correct ? Colors.GREEN5 : Colors.RED5}; Loading Loading @@ -53,7 +54,7 @@ const AutoFreeFormQuestion: FC<QuestionProps> = ({ ? event => onChange(event.currentTarget.value) : undefined } rows={5} autoResize className={cx(textArea, { [highlight(answer === details.correctAnswer)]: !!answer && inInstructor, Loading frontend/src/components/Questionnaire/FreeFormQuestion.tsx +3 −2 Original line number Diff line number Diff line Loading @@ -11,7 +11,8 @@ const label = css` ` const textArea = css` resize: none; resize: none !important; min-height: 7rem; ` const FreeFormQuestion: FC<QuestionProps> = ({ type, Loading Loading @@ -40,6 +41,7 @@ const FreeFormQuestion: FC<QuestionProps> = ({ /> {multiline ? ( <TextArea autoResize intent={error ? 'danger' : 'none'} readOnly={disabled} fill Loading @@ -49,7 +51,6 @@ const FreeFormQuestion: FC<QuestionProps> = ({ ? event => onChange(event.currentTarget.value) : undefined } rows={5} className={textArea} /> ) : ( Loading Loading
frontend/src/components/Questionnaire/AutoFreeFormQuestion.tsx +3 −2 Original line number Diff line number Diff line Loading @@ -12,7 +12,8 @@ const label = css` ` const textArea = css` resize: none; resize: none !important; min-height: 7rem; ` const highlight = (correct: boolean) => css` border-bottom: 0.2rem solid ${correct ? Colors.GREEN5 : Colors.RED5}; Loading Loading @@ -53,7 +54,7 @@ const AutoFreeFormQuestion: FC<QuestionProps> = ({ ? event => onChange(event.currentTarget.value) : undefined } rows={5} autoResize className={cx(textArea, { [highlight(answer === details.correctAnswer)]: !!answer && inInstructor, Loading
frontend/src/components/Questionnaire/FreeFormQuestion.tsx +3 −2 Original line number Diff line number Diff line Loading @@ -11,7 +11,8 @@ const label = css` ` const textArea = css` resize: none; resize: none !important; min-height: 7rem; ` const FreeFormQuestion: FC<QuestionProps> = ({ type, Loading Loading @@ -40,6 +41,7 @@ const FreeFormQuestion: FC<QuestionProps> = ({ /> {multiline ? ( <TextArea autoResize intent={error ? 'danger' : 'none'} readOnly={disabled} fill Loading @@ -49,7 +51,6 @@ const FreeFormQuestion: FC<QuestionProps> = ({ ? event => onChange(event.currentTarget.value) : undefined } rows={5} className={textArea} /> ) : ( Loading