moviewyrm/bookwyrm/templates/snippets/toggle/toggle_button.html

10 lines
452 B
HTML
Raw Normal View History

2021-01-14 22:19:30 +00:00
<label class="{% if class %}{{ class }}{% else %}button{% endif %}{% if small %} is-small{% endif %}" for="{{ controls_text }}{% if controls_uid %}-{{ controls_uid }}{% endif %}" tabindex="0" role="button"{% if label %} aria-label="{{ label }}"{% endif %}>
2021-01-14 21:02:50 +00:00
{% if icon %}
2021-01-14 22:13:23 +00:00
<span class="icon icon-{{ icon }}" title="{{ text }}">
2021-01-14 21:02:50 +00:00
<span class="is-sr-only">{{ text }}</span>
</span>
{% else %}
{{ text }}
{% endif %}
</label>