Skip to content

Commit

Permalink
Add space between icon an label in ClayLink | Fixes #710
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Lancha committed Mar 13, 2018
1 parent 952a7ba commit 271673b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/clay-link/src/ClayLink.soy
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
{else}
{if $icon and $iconAlignment == 'left' and $spritemap}
{call .icon}
{param elementClasses: $label ? 'inline-item inline-item-before' : '' /}
{param icon: $icon /}
{param spritemap: $spritemap /}
{/call}
Expand All @@ -106,6 +107,7 @@

{if $icon and $iconAlignment == 'right' and $spritemap}
{call .icon}
{param elementClasses: 'inline-item inline-item-after' /}
{param icon: $icon /}
{param spritemap: $spritemap /}
{/call}
Expand All @@ -117,10 +119,12 @@
* Renders icon element
*/
{template .icon}
{@param elementClasses: string}
{@param icon: string}
{@param spritemap: string}

{call ClayIcon.render}
{param elementClasses: $elementClasses /}
{param spritemap: $spritemap /}
{param symbol: $icon /}
{/call}
Expand Down

0 comments on commit 271673b

Please sign in to comment.