From ac29a8fa69c13e4cf0f7c36f1cf2f3bf3be629c8 Mon Sep 17 00:00:00 2001 From: Nathaniel Hammond Date: Mon, 25 Jun 2018 08:48:49 +0100 Subject: [PATCH] [Improved] Updating class name escaping to be compatible with tailwind 0.6 --- index.js | 2 +- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 9627fa6..48f7116 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,7 @@ const className = 'transition' module.exports = function({ standard, transitions, variants }) { return function({ addUtilities, e }) { let utilities = _.map(transitions, (val, name) => ({ - [`.${className}-${e(name)}`]: { + [`.${e(`${className}-${name}`)}`]: { transition: val } })) diff --git a/package-lock.json b/package-lock.json index 777c5e6..0eb87b4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "tailwindcss-transition", - "version": "1.0.4", + "version": "1.0.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 51fb70c..fa9ab51 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tailwindcss-transition", - "version": "1.0.4", + "version": "1.0.5", "description": "Transition utility plugin for tailwindcss framework", "main": "index.js", "scripts": {