From d4e0ef003b38389397daf7153e640b3a643754de Mon Sep 17 00:00:00 2001 From: Kevin Ball Date: Wed, 9 Mar 2016 12:06:02 -0800 Subject: [PATCH] Fix center tag to expand with new text-center class --- lib/componentFactory.js | 2 +- package.json | 2 +- test/components.js | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/componentFactory.js b/lib/componentFactory.js index 550a28b..c4750f3 100644 --- a/lib/componentFactory.js +++ b/lib/componentFactory.js @@ -82,7 +82,7 @@ module.exports = function(element) { if (element.children().length > 0) { element.children() .attr('align', 'center') - .addClass('center'); + .addClass('text-center'); } element.attr('data-parsed', ''); diff --git a/package.json b/package.json index 3dcaecb..7984d9b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "inky", - "version": "1.2.2", + "version": "1.2.3", "description": "Convert a simple HTML syntax into tables compatible with Foundation for Emails.", "author": "ZURB (http://foundation.zurb.com)", "keywords": [ diff --git a/test/components.js b/test/components.js index fbe8523..72b2bc0 100644 --- a/test/components.js +++ b/test/components.js @@ -1,7 +1,7 @@ var compare = require('./lib/compare'); describe('Center', () => { - it('applies a center class and center alignment attribute to the first child', () => { + it('applies a text-center class and center alignment attribute to the first child', () => { var input = `
@@ -9,7 +9,7 @@ describe('Center', () => { `; var expected = `
-
+
`; @@ -26,7 +26,7 @@ describe('Center', () => { var expected = `
-
+
`; @@ -87,7 +87,7 @@ describe('Button', () => {
-
Button
+
Button