From ceb093e6a1df8bde5fb7562879eaf78661c44161 Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Tue, 19 Feb 2019 15:49:33 -0500 Subject: [PATCH] Rename leading plugin to lineHeight --- defaultConfig.stub.js | 2 +- defaultTheme.js | 2 +- plugins/leading.js | 1 - plugins/lineHeight.js | 1 + src/corePlugins.js | 4 ++-- src/plugins/{leading.js => lineHeight.js} | 0 6 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 plugins/leading.js create mode 100644 plugins/lineHeight.js rename src/plugins/{leading.js => lineHeight.js} (100%) diff --git a/defaultConfig.stub.js b/defaultConfig.stub.js index 8715bf9ea..992c8750c 100644 --- a/defaultConfig.stub.js +++ b/defaultConfig.stub.js @@ -24,7 +24,7 @@ module.exports = { fontFamily: ['responsive'], fontWeight: ['responsive', 'hover', 'focus'], height: ['responsive'], - leading: ['responsive'], + lineHeight: ['responsive'], listStyle: ['responsive'], margin: ['responsive'], maxHeight: ['responsive'], diff --git a/defaultTheme.js b/defaultTheme.js index 4137a4209..562912252 100644 --- a/defaultTheme.js +++ b/defaultTheme.js @@ -159,7 +159,7 @@ module.exports = function() { extrabold: 800, black: 900, }, - leading: { + lineHeight: { none: 1, tight: 1.25, normal: 1.5, diff --git a/plugins/leading.js b/plugins/leading.js deleted file mode 100644 index 231aeb9ed..000000000 --- a/plugins/leading.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../lib/plugins/leading').default diff --git a/plugins/lineHeight.js b/plugins/lineHeight.js new file mode 100644 index 000000000..31977ffaa --- /dev/null +++ b/plugins/lineHeight.js @@ -0,0 +1 @@ +module.exports = require('../lib/plugins/lineHeight').default diff --git a/src/corePlugins.js b/src/corePlugins.js index ba2443042..291f72a5d 100644 --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -18,7 +18,7 @@ import float from './plugins/float' import fontFamily from './plugins/fontFamily' import fontWeight from './plugins/fontWeight' import height from './plugins/height' -import leading from './plugins/leading' +import lineHeight from './plugins/lineHeight' import margin from './plugins/margin' import maxHeight from './plugins/maxHeight' import maxWidth from './plugins/maxWidth' @@ -92,7 +92,7 @@ export default function(config) { fontFamily, fontWeight, height, - leading, + lineHeight, margin, maxHeight, maxWidth, diff --git a/src/plugins/leading.js b/src/plugins/lineHeight.js similarity index 100% rename from src/plugins/leading.js rename to src/plugins/lineHeight.js