Add tabindex on popover help items.

Fixes #1248
This commit is contained in:
Anthony Bourguignon
2017-10-06 09:47:13 +02:00
parent 303b6a8adb
commit 518603126f
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>