You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When extending a variantInstance multiple times using the extend, some variants properties (e.g., tag, dot) are lost.
To Reproduce
Steps to reproduce the behavior:
Create a base variant using tailwind-variants.
Extend the base variant baseTagVariants to create userRoleVariants variant.
Extend the userRoleVariants to create a userRoleIconVariants variant.
Attempt to use the properties e.g. tag and dot in the final variant userRoleIconVariants.
See error indicating that tag and dot do not exist in the type.
Expected behavior
The properties tag and dot should be available in the final extended variant.
Additional context
This issue occurs only in TypeScript. The problem is demonstrated in the file src/variants.demo.ts (tv-issue). "typescript": "~5.7.2"
Describe the bug
When extending a
variantInstance
multiple times using theextend
, some variants properties (e.g.,tag
,dot
) are lost.To Reproduce
Steps to reproduce the behavior:
tailwind-variants
.baseTagVariants
to createuserRoleVariants
variant.userRoleVariants
to create auserRoleIconVariants
variant.tag
anddot
in the final variantuserRoleIconVariants
.tag
anddot
do not exist in the type.Expected behavior
The properties
tag
anddot
should be available in the final extended variant.Additional context
This issue occurs only in TypeScript. The problem is demonstrated in the file
src/variants.demo.ts
(tv-issue)."typescript": "~5.7.2"
Repo:
tv-issue
Code:
The text was updated successfully, but these errors were encountered: