Skip to content
This repository has been archived by the owner on Aug 5, 2019. It is now read-only.

Commit

Permalink
Dont pass gutter prop to div
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnblk committed Jul 5, 2016
1 parent 92795a8 commit ddf9a99
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 92 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules
npm-debug.log
dist/*
docs/bundle.js
docs/dev.js
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: node_js
node_js:
- 4.3
- 5.6
- 6.2
addons:
firefox: '39.0'
code_climate:
Expand Down
44 changes: 0 additions & 44 deletions docs/bundle.js

This file was deleted.

44 changes: 0 additions & 44 deletions docs/dev.js

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"mocha:watch": "mocha --watch --compilers js:babel-register",
"standard": "standard",
"start": "npm run docs:dev",
"test": "npm run mocha && npm run karma"
"test": "standard && npm run mocha && npm run karma"
},
"author": "Brent Jackson",
"license": "MIT",
Expand Down
3 changes: 2 additions & 1 deletion src/Base.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const Base = ({
is,
_style,
_className,
gutter,
m, mt, mr, mb, ml, mx, my,
p, pt, pr, pb, pl, px, py,
...props
Expand All @@ -21,7 +22,7 @@ const Base = ({
{ boxSizing: 'border-box' },
style,
_style,
margin({ m, mt, mr, mb, ml, mx, my }, scale),
margin({ gutter, m, mt, mr, mb, ml, mx, my }, scale),
padding({ p, pt, pr, pb, pl, px, py }, scale)
)

Expand Down
1 change: 1 addition & 0 deletions test/Base.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ describe('Base', () => {
is='div'
_style={{ color: 'black' }}
_className='black'
gutter={1}
m={1} mt={1} mr={1} mb={1} ml={1} mx={1} my={1}
p={1} pt={1} pr={1} pb={1} pl={1} px={1} py={1}
/>
Expand Down

0 comments on commit ddf9a99

Please sign in to comment.