Uses toggle button snippet for content warning
This commit is contained in:
parent
afdf5fc8ec
commit
f7e3cbda84
7 changed files with 19 additions and 22 deletions
|
@ -1,10 +1,11 @@
|
|||
<button
|
||||
type="button"
|
||||
class="toggle-control button {{ class }} {% if button_type %}{{ button_type }}{% else %}toggle-button{% endif %}"
|
||||
class="toggle-control button {{ class }} {% if button_type %}{{ button_type }}{% endif %}"
|
||||
data-controls="{{ controls_text }}{% if controls_uid %}-{{ controls_uid }}{% endif %}"
|
||||
{% if hover %}data-hover-target="{{ hover }}"{% 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="false"
|
||||
aria-pressed="{% if pressed %}true{% else %}false{% endif %}"
|
||||
>
|
||||
|
||||
{% if icon %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue