From f14d9b269bcacea90ce6f687f033b312513c8690 Mon Sep 17 00:00:00 2001 From: Erik Wendel Date: Mon, 6 Jun 2016 14:16:41 +0200 Subject: [PATCH] fixed css-naming bug --- package.json | 2 +- src/checkbox.js | 2 +- src/checkbox.test.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index bfb9eb82cc..8bbe8ddad7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ffe-checkbox-react", - "version": "1.4.0", + "version": "1.4.1", "main": "lib/checkbox.js", "scripts": { "build": "babel -d lib/. --ignore=*.test.js src/. && npm run example", diff --git a/src/checkbox.js b/src/checkbox.js index c1fa34aa49..87de343238 100644 --- a/src/checkbox.js +++ b/src/checkbox.js @@ -7,7 +7,7 @@ export default function CheckBox({ name, label, onChange, checked, children, noM const classes = classNames({ 'ffe-checkbox': true, 'ffe-checkbox--inline': true, - 'ffe-checkbox--no-margins': noMargins + 'ffe-checkbox--no-margin': noMargins }); return diff --git a/src/checkbox.test.js b/src/checkbox.test.js index 05c3af2ed2..d0304f4807 100644 --- a/src/checkbox.test.js +++ b/src/checkbox.test.js @@ -53,11 +53,11 @@ describe('', () => { it('should support noMargins', () => { assert.equal( - shallow(CreateCheckbox({ noMargins: false })).find('.ffe-checkbox--no-margins').length, + shallow(CreateCheckbox({ noMargins: false })).find('.ffe-checkbox--no-margin').length, 0); assert.equal( - shallow(CreateCheckbox({ noMargins: true })).find('.ffe-checkbox--no-margins').length, + shallow(CreateCheckbox({ noMargins: true })).find('.ffe-checkbox--no-margin').length, 1); });