Skip to content

Commit 8cff147

Browse files
authored
Merge pull request #780 from lachlanjc/patch-5
Map caretColor to colors scale, closes #775
2 parents a34483b + 6109f6a commit 8cff147

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/css/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export const scales = {
5656
color: 'colors',
5757
backgroundColor: 'colors',
5858
borderColor: 'colors',
59+
caretColor: 'colors',
5960
opacity: 'opacities',
6061
margin: 'space',
6162
marginTop: 'space',

packages/css/test/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,14 +383,16 @@ test('flexBasis uses theme.sizes', () => {
383383
})
384384
})
385385

386-
test('fill and stroke use theme.colors', () => {
386+
test('fill and stroke and caretColor use theme.colors', () => {
387387
const style = css({
388388
fill: 'primary',
389389
stroke: 'secondary',
390+
caretColor: 'primary',
390391
})(theme)
391392
expect(style).toEqual({
392393
fill: 'tomato',
393394
stroke: 'cyan',
395+
caretColor: 'tomato',
394396
})
395397
})
396398

0 commit comments

Comments
 (0)