Screen reader fixes for list view

This commit is contained in:
Mouse Reeve 2022-01-27 12:55:53 -08:00
parent d62473c432
commit a80c19d3e5
2 changed files with 3 additions and 3 deletions

View file

@ -12,7 +12,7 @@
id="id_notes_{{ form_id }}" id="id_notes_{{ form_id }}"
maxlength="300" maxlength="300"
name="notes" name="notes"
aria-described-by="notes_description_{{ form_id }}" aria-describedby="notes_description_{{ form_id }}"
>{{ item.notes|default:'' }}</textarea> >{{ item.notes|default:'' }}</textarea>
</div> </div>
<p class="help" id="notes_description_{{ form_id }}"> <p class="help" id="notes_description_{{ form_id }}">

View file

@ -73,7 +73,7 @@
{% if item.notes %} {% if item.notes %}
<div class="media notification"> <div class="media notification">
<figure class="media-left"> <figure class="media-left" aria-hidden="true">
{% include "snippets/avatar.html" with user=item.user %} {% include "snippets/avatar.html" with user=item.user %}
</figure> </figure>
<div class="media-content"> <div class="media-content">
@ -263,7 +263,7 @@
<textarea <textarea
readonly readonly
class="textarea is-small" class="textarea is-small"
aria-labelledby="embed-label" aria-describedby="embed-label"
data-copytext data-copytext
data-copytext-label="{% trans 'Copy embed code' %}" data-copytext-label="{% trans 'Copy embed code' %}"
data-copytext-success="{% trans 'Copied!' %}" data-copytext-success="{% trans 'Copied!' %}"