Skip to content
Snippets Groups Projects
Commit e04342f9 authored by xaralis's avatar xaralis
Browse files

fix(shared): button block not respecting icon

parent d48b77be
No related branches found
No related tags found
2 merge requests!529Release,!528Random fixes/improvements
Pipeline #8278 passed
{% load wagtailcore_tags wagtailimages_tags %} {% load wagtailcore_tags wagtailimages_tags %}
{% firstof self.page.url self.link as target %} {% firstof self.page.url self.link as target %}
<a href="{{ target }}" class="btn btn--{{ self.color }} {% if self.hoveractive %}btn--hoveractive{% endif %} {% if self.icon %}btn--icon{% endif %} btn--autowidth text-{{ self.size }}"
<a href="{{ target }}" class="btn btn--{{ self.color }} {% if self.hoveractive %}btn--hoveractive{% endif %} btn--autowidth text-{{ self.size }}"
> >
{% if self.icon %}
<div class="btn__body-wrap">
<div class="btn__body ">{{ self.title }}</div> <div class="btn__body ">{{ self.title }}</div>
<div class="btn__icon "><i class="ico--{{ self.icon }}"></i></div>
</div>
{% else %}
<div class="btn__body ">{{ self.title }}</div>
{% endif %}
</a> </a>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment