Make clipboard button accessible

Without the @href, it is not accessible at all because it is not
considered an active element.
This commit is contained in:
Jonas Schäfer
2021-01-30 12:45:38 +01:00
parent 0dbd8087eb
commit 58a9903a8f

View File

@@ -60,6 +60,7 @@
{% macro clipboard_button(data, show_label=False, caller=None, class=None) -%}
{%- set label = caller() -%}
<a class="button{% if class %} {{ class }}{% endif %}"
href="#"
{% if not show_label %}
aria-label="{{ label }}"
title="{{ label }}"