Skip to content

Commit

Permalink
fix: add missing properties top, left, right, bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Nov 13, 2019
1 parent 6e5ffa8 commit c20345b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/core/src/propGetters.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
getFontWeight,
getLetterSpacing,
getTransition,
getPx,
} from '@xstyled/system'

const getNumber = transform => value => {
Expand All @@ -27,6 +28,8 @@ const getMultiValues = transform => value => {
return p => values.map(value => transform(value)(p)).join(' ')
}

const getNumberPx = getNumber(getPx)

const getNumberSpace = getNumber(getSpace)
const getMultiNumberSpace = getMultiValues(getNumberSpace)

Expand Down Expand Up @@ -121,4 +124,10 @@ export const propGetters = {

// getTransition
transition: getTransition,

// getPx
top: getNumberPx,
right: getNumberPx,
bottom: getNumberPx,
left: getNumberPx,
}

0 comments on commit c20345b

Please sign in to comment.