Skip to content

Commit

Permalink
[!!!][BUGFIX] Fix incorrect class of link in IconTextButton CE, fixes #…
Browse files Browse the repository at this point in the history
…419 (#420)

Breaking since classes "btn btn-default" could be added even if "button as link" was enabled.
Applying this fix might change appearance of IconTextButton CE:s.
  • Loading branch information
pixelmatseriks authored and dmh committed Jun 22, 2018
1 parent f4bded1 commit dcc9e66
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Don't want classes btn btn-default when link is on "whole area"
-->
</f:comment>
<f:variable name="anchorClass">{f:if(condition: '{settings.disableWholeAreaLink} != 1 && {settings.btnAsLink} != 1' , then: '', else: ' btn btn-default')}</f:variable>
<f:variable name="anchorClass">{f:if(condition: '{settings.disableWholeAreaLink} == 1 && {settings.btnAsLink} != 1' , then: ' btn btn-default', else: '')}</f:variable>

<div class="icon-text-btn__wrp">
<div class="icon-text-btn{f:if(condition: settings.disableWholeAreaLink, then: '', else: ' _whole-area-link')}">
Expand Down

0 comments on commit dcc9e66

Please sign in to comment.