Skip to content

Commit

Permalink
css: add outlineColor theme scale
Browse files Browse the repository at this point in the history
  • Loading branch information
damnjan committed Sep 17, 2019
1 parent 9562996 commit 3aeed32
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/css/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ const scales = {
borderRightWidth: 'borderWidths',
borderRightColor: 'colors',
borderRightStyle: 'borderStyles',
outlineColor: 'colors',
boxShadow: 'shadows',
textShadow: 'shadows',
zIndex: 'zIndices',
Expand Down
9 changes: 9 additions & 0 deletions packages/css/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,3 +397,12 @@ test('multiples are transformed', () => {
height: 16,
})
})

test('returns outline color from theme', () => {
const result = css({
outlineColor: 'primary',
})(theme)
expect(result).toEqual({
outlineColor: 'tomato'
})
})

0 comments on commit 3aeed32

Please sign in to comment.