Skip to content

Commit

Permalink
Merge pull request #1018 from bolt/bugfix/replace-illegal-icon-tag
Browse files Browse the repository at this point in the history
Replace <icon> with <i> in infobox popover icon
  • Loading branch information
bobdenotter committed Feb 5, 2020
2 parents 2361524 + 68d6341 commit e02106b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/_partials/fields/_label.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{% if required %} <span class="required-label"></span> {% endif %}

{% if info is not empty %}
<icon class="fa fa-info-circle" data-toggle="popover" data-trigger="hover" title="{{ label }}" data-html="true" data-content="{{ info }}"></icon>
<i class="fa fa-info-circle" data-toggle="popover" data-trigger="hover" title="{{ label }}" data-html="true" data-content="{{ info }}"></i>
{% endif %}
</label>
{%- endif -%}
4 changes: 2 additions & 2 deletions tests/e2e/edit_record_1.feature
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ Feature: Edit record
When I am on "/bolt/edit/38"

Then I should see an "label[for='field-email']" element
And I should see 1 "icon" elements in the "label[for='field-email']" element
And I should see 1 "i" elements in the "label[for='field-email']" element

When I scroll "Email" into view
When I hover over the "label[for='field-email'] > icon" element
When I hover over the "label[for='field-email'] > i" element
Then I should see "Email" in the ".popover-header" element
And I should see "This is an info box shown as a popover next to the field label." in the ".popover-body" element

Expand Down

0 comments on commit e02106b

Please sign in to comment.