Use bulma screen-reader-only class

This commit is contained in:
Mouse Reeve
2020-09-30 15:10:37 -07:00
parent ada6a79b1c
commit 982f734ce7
12 changed files with 22 additions and 30 deletions

View File

@ -1,5 +1,5 @@
<div class="stars">
<span class="hidden-text">{{ rating|floatformat }} star{{ rating|floatformat | pluralize }}</span>
<span class="is-sr-only">{{ rating|floatformat }} star{{ rating|floatformat | pluralize }}</span>
{% for i in '12345'|make_list %}
<span class="icon icon-star-{% if rating >= forloop.counter %}full{% elif rating|floatformat:0 >= forloop.counter|floatformat:0 %}half{% else %}empty{% endif %}">
</span>