Skip to content

Commit

Permalink
fixed css-naming bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Wendel committed Jun 6, 2016
1 parent aa66418 commit f14d9b2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 <span>
Expand Down
4 changes: 2 additions & 2 deletions src/checkbox.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ describe('<Checkbox />', () => {

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);
});

Expand Down

0 comments on commit f14d9b2

Please sign in to comment.