rapidfire icon indicating copy to clipboard operation
rapidfire copied to clipboard

Question text as a label

Open bnadav opened this issue 9 years ago • 1 comments

Hi all, The question text is rendered in the different answers partials using a common instruction:

<%= f.label :answer_text, answer.question.question_text %>

This results in a markup that looks like

<label for="attempt_1_answer_text">How are you ?</label>

This is a bit weird since there is no accompanying input element named 'attempt_1_answer_text'. Also this label does not contain any answer text but rather a question text.

Maybe this label should be replaced by a span or a div element, with a more descriptive id attribute.

bnadav avatar Jan 11 '17 11:01 bnadav

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs for another 14 days. Thank you for your contributions.

stale[bot] avatar Aug 28 '19 12:08 stale[bot]