Merge pull request #1249 from Toniob/tabindex

Add tabindex on popover help items.
This commit is contained in:
Antoine Nguyen
2017-10-06 17:15:17 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
{% if field.label %}
<label class="control-label {{ label_width }}" for="id_{{ field.html_name }}">{{ field.label }}
{% if help_display_mode == "tooltip" and field.help_text %}
<a href="#" class="help" data-original-title="{% trans 'Help:' %} {{ field.label }}" data-content="{{ field.help_text }}" rel="popover">?</a>
<a href="#" class="help" data-original-title="{% trans 'Help:' %} {{ field.label }}" data-content="{{ field.help_text }}" rel="popover" tabindex="-1">?</a>
{% endif %}
</label>
{% endif %}
@@ -5,7 +5,7 @@
{% if forloop.first %}
{{ label }}
{% if help_text %}
<a href="#" class="help" data-original-title="{% trans 'Help:' %} {{ label }}" data-content="{{ help_text }}" rel="popover">?</a>
<a href="#" class="help" data-original-title="{% trans 'Help:' %} {{ label }}" data-content="{{ help_text }}" rel="popover" tabindex="-1">?</a>
{% endif %}
{% endif %}
</label>