Improve accessibility rating

This commit is contained in:
Robin 2021-01-17 23:49:36 +01:00
parent 090ca1a140
commit 162e00b243
6 changed files with 18 additions and 15 deletions

View file

@ -62,7 +62,7 @@
<!-- POST MEDIA -->
{% if post.post_type == "image" %}
<img class="post_media" width="{{ post.media_width }}px" height="{{ post.media_height}}px" src="{{ post.media }}"/>
<img class="post_media" alt="Post image" width="{{ post.media_width }}px" height="{{ post.media_height}}px" src="{{ post.media }}"/>
{% else if post.post_type == "video" || post.post_type == "gif" %}
<video class="post_media" src="{{ post.media }}" controls autoplay loop></video>
{% else if post.post_type == "link" %}
@ -85,7 +85,7 @@
<!-- SORT FORM -->
<form id="sort">
<select name="sort">
<select name="sort" title="Sort comments by">
{% call utils::options(sort, ["confidence", "top", "new", "controversial", "old"], "confidence") %}
</select><input id="sort_submit" type="submit" value="&rarr;">
</form>