2021-01-17 16:26:28 +00:00
|
|
|
<button
|
|
|
|
type="button"
|
2021-01-17 18:10:59 +00:00
|
|
|
class="toggle-control {% if not nonbutton %}button{% endif %} {{ class }} {% if button_type %}{{ button_type }}{% endif %}"
|
2021-01-17 16:26:28 +00:00
|
|
|
data-controls="{{ controls_text }}{% if controls_uid %}-{{ controls_uid }}{% endif %}"
|
2021-01-17 16:50:47 +00:00
|
|
|
{% 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 %}
|
2021-01-17 16:26:28 +00:00
|
|
|
{% if label %}aria-label="label"{% endif %}
|
2021-01-17 16:50:47 +00:00
|
|
|
aria-pressed="{% if pressed %}true{% else %}false{% endif %}"
|
2021-01-17 16:26:28 +00:00
|
|
|
>
|
|
|
|
|
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 %}
|
2021-01-17 16:26:28 +00:00
|
|
|
</button>
|