Skip to content

Commit

Permalink
fix: fix fontSize, lineHeight & zIndex getters
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Jul 9, 2019
1 parent 0d96082 commit 07b90f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/propGetters.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,16 @@ export const propGetters = {
'min-height': getNumberSize,

// getZIndex
'z-index': getZIndex,
'z-index': getNumber(getZIndex),

// getFont
'font-family': getFont,

// getFontSize
'font-size': getFontSize,
'font-size': getNumber(getFontSize),

// getLineHeight
'line-height': getLineHeight,
'line-height': getNumber(getLineHeight),

// getFontWeight
'font-weight': getFontWeight,
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/propGetters.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ describe('#propGetters', () => {
describe('border-radius', () => {
it('handles several values', () => {
expect(propGetters['border-radius']('10')({})).toBe('10px')
expect(propGetters['font-size']('10')({})).toBe('10px')
expect(propGetters['border-radius']('1 2')({})).toBe('1px 2px')
expect(
propGetters['border-radius']('md')({ theme: { radii: { md: 10 } } }),
Expand Down

0 comments on commit 07b90f5

Please sign in to comment.