Skip to content

Commit

Permalink
adds align attribute to wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
RafiBomb committed Mar 31, 2016
1 parent ea1888b commit 2b56d04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/componentFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ module.exports = function(element) {
classes = classes.concat(element.attr('class').split(' '));
}

return format('<table class="%s"><tr><td class="wrapper-inner">%s</td></tr></table>', classes.join(' '), inner);
return format('<table class="%s" align="center"><tr><td class="wrapper-inner">%s</td></tr></table>', classes.join(' '), inner);

default:
// If it's not a custom component, return it as-is
Expand Down
2 changes: 1 addition & 1 deletion test/components.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ describe('wrapper', () => {
it('creates a wrapper that you can attach classes to', () => {
var input = `<wrapper class="header"></wrapper>`;
var expected = `
<table class="wrapper header">
<table class="wrapper header" align="center">
<tr>
<td class="wrapper-inner"></td>
</tr>
Expand Down

0 comments on commit 2b56d04

Please sign in to comment.