Skip to content

Question text as a label #95

@bnadav

Description

@bnadav

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions