Commit d577b5bc by Sven Marnach

Address further accessibility review notes.

parent ae31e802
...@@ -17,6 +17,9 @@ ...@@ -17,6 +17,9 @@
{{/if}} {{/if}}
</div> </div>
<span class="tip setting-help"> <span class="tip setting-help">
You can make limited use of Markdown in answer texts, preferably only bold and italics.
</span>
<span class="tip setting-help">
{{#if image}} {{#if image}}
This must have an image URL or text, and can have both. If you add an image, an alternate text that describes This must have an image URL or text, and can have both. If you add an image, an alternate text that describes
the image in a way that would allow someone to answer the poll if the image did not load is strongly encouraged. the image in a way that would allow someone to answer the poll if the image did not load is strongly encouraged.
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
{% if value.img %} {% if value.img %}
<div class="poll-image"> <div class="poll-image">
<label for="{{url_name}}-answer-{{key}}" class="poll-image-label"> <label for="{{url_name}}-answer-{{key}}" class="poll-image-label">
<img src="{{value.img}}" alt="{{value.img_alt}}"/> <img src="{{value.img}}" alt="{{value.img_alt|default_if_none:''}}"/>
</label> </label>
</div> </div>
{% endif %} {% endif %}
......
...@@ -18,14 +18,18 @@ ...@@ -18,14 +18,18 @@
<td class="survey-question"> <td class="survey-question">
{% if question.img %} {% if question.img %}
<div class="poll-image-td"> <div class="poll-image-td">
<img src="{{question.img}}" alt="question.img_alt"/> <img src="{{question.img}}" alt="{{question.img_alt|default_if_none:''}}"/>
</div> </div>
{% endif %} {% endif %}
{{question.label|safe}} {{question.label|safe}}
</td> </td>
{% for answer, answer_details in answers %} {% for answer, label in answers %}
<td class="survey-option"> <td class="survey-option">
<input type="radio" name="{{key}}" value="{{answer}}"{% if question.choice == answer %} checked{% endif %}/> <input type="radio" name="{{key}}" value="{{answer}}"{% if question.choice == answer %} checked{% endif %}/>
<label>
<input type="radio" name="{{key}}" value="{{answer}}"{% if question.choice == answer %} checked{% endif %}/>
<span class="sr">{{label}}</span>
</label>
</td> </td>
{% endfor %} {% endfor %}
</tr> </tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment