Skip to content

Commit dcc9e66

Browse files
pixelmatseriksdmh
authored andcommitted
[!!!][BUGFIX] Fix incorrect class of link in IconTextButton CE, fixes #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.
1 parent f4bded1 commit dcc9e66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Resources/Private/Templates/ContentElements/IconTextButton.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
Don't want classes btn btn-default when link is on "whole area"
1212
-->
1313
</f:comment>
14-
<f:variable name="anchorClass">{f:if(condition: '{settings.disableWholeAreaLink} != 1 && {settings.btnAsLink} != 1' , then: '', else: ' btn btn-default')}</f:variable>
14+
<f:variable name="anchorClass">{f:if(condition: '{settings.disableWholeAreaLink} == 1 && {settings.btnAsLink} != 1' , then: ' btn btn-default', else: '')}</f:variable>
1515

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

0 commit comments

Comments
 (0)