Skip to content

Commit 903f5bd

Browse files
committed
fix(system): cva return type
1 parent 99f2527 commit 903f5bd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.changeset/blue-owls-care.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@
33
---
44

55
- **Global CSS**: Improve text selection contrast
6-
- **System**: Fix issue where `borderEnd` shorthand was not working despite
7-
`borderStart` being present
6+
- **System**
7+
- Fix issue where `borderEnd` shorthand was not working despite `borderStart`
8+
being present
9+
- Fix issue where `system.cva` return type was incorrect

packages/react/src/styled-system/recipe.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export type RecipeSelection<
1616

1717
export type RecipeVariantFn<T extends RecipeVariantRecord> = (
1818
props?: RecipeSelection<T>,
19-
) => string
19+
) => SystemStyleObject
2020

2121
export type RecipeVariantProps<
2222
T extends RecipeDefinition | SlotRecipeDefinition,

0 commit comments

Comments
 (0)