forked from mirrors/bookwyrm
18 lines
797 B
HTML
18 lines
797 B
HTML
<button
|
|
type="button"
|
|
class="toggle-control {% if not nonbutton %}button{% endif %} {{ class }} {% if button_type %}{{ button_type }}{% endif %}"
|
|
data-controls="{{ controls_text }}{% if controls_uid %}-{{ controls_uid }}{% endif %}"
|
|
{% if focus %}data-focus-target="{{ focus }}{% if controls_uid %}-{{ controls_uid }}{% endif %}"{% endif %}
|
|
{% if checkbox %}data-controls-checkbox="{{ checkbox }}{% if controls_uid %}-{{ controls_uid }}{% endif %}"{% endif %}
|
|
{% if label %}aria-label="label"{% endif %}
|
|
aria-pressed="{% if pressed %}true{% else %}false{% endif %}"
|
|
>
|
|
|
|
{% if icon %}
|
|
<span class="icon icon-{{ icon }}" title="{{ text }}">
|
|
<span class="is-sr-only">{{ text }}</span>
|
|
</span>
|
|
{% else %}
|
|
{{ text }}
|
|
{% endif %}
|
|
</button>
|