Skip to content

Commit

Permalink
Add attributes for the spacer's table
Browse files Browse the repository at this point in the history
  • Loading branch information
yvmarques authored Jul 5, 2016
1 parent 11805b4 commit 4c835c3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/componentFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,22 +131,22 @@ module.exports = function(element) {
if (element.attr('size-sm') || element.attr('size-lg')) {
if (element.attr('size-sm')) {
size = (element.attr('size-sm'));
html += '<table class="%s hide-for-large"><tbody><tr><td height="'+size+'px" style="font-size:'+size+'px;line-height:'+size+'px;">&#xA0;</td></tr></tbody></table>';
html += '<table %s class="%s hide-for-large"><tbody><tr><td height="'+size+'px" style="font-size:'+size+'px;line-height:'+size+'px;">&#xA0;</td></tr></tbody></table>';
}
if (element.attr('size-lg')) {
size = (element.attr('size-lg'));
html += '<table class="%s show-for-large"><tbody><tr><td height="'+size+'px" style="font-size:'+size+'px;line-height:'+size+'px;">&#xA0;</td></tr></tbody></table>';
html += '<table %s class="%s show-for-large"><tbody><tr><td height="'+size+'px" style="font-size:'+size+'px;line-height:'+size+'px;">&#xA0;</td></tr></tbody></table>';
}
} else {
size = (element.attr('size')) || 16;
html += '<table class="%s"><tbody><tr><td height="'+size+'px" style="font-size:'+size+'px;line-height:'+size+'px;">&#xA0;</td></tr></tbody></table>';
html += '<table %s class="%s"><tbody><tr><td height="'+size+'px" style="font-size:'+size+'px;line-height:'+size+'px;">&#xA0;</td></tr></tbody></table>';
}

if( element.attr('size-sm') && element.attr('size-lg') ) {
return format(html, classes.join(' '), classes.join(' '), inner);
return format(html, attrs, classes.join(' '), classes.join(' '), inner);
}

return format(html, classes.join(' '), inner);
return format(html, attrs, classes.join(' '), inner);

// <wrapper>
case this.components.wrapper:
Expand Down

0 comments on commit 4c835c3

Please sign in to comment.