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 using the extend capabilities, if a variation's value does not match the shape of the extended tv result, it will add [object Object] to the class list rather than calculate the value.
Expected behavior
I expect that both blue and extended-blue are applied to Button's class.
Screenshots
Desktop (please complete the following information):
OS: macOS
Browser: Chrome
Version: 121.0.6167.184 (Official Build) (arm64)
Additional context
I'm using TypeScript 5.3.3, but on previous versions of TypeScript I believe it would simply omit [object Object] instead of adding in the desired class.
The text was updated successfully, but these errors were encountered:
Yes, it would work if you matched the structure between styles and extendedStyles, but it should also work with my example as well.
Consider a case where styles is defined in a library and extendedStyles is defined in an application using that library. The types allow you to define extendedStyles as I did in the example, so it ends up not working as expected because the original blue class from styles does not get applied.
It is a very difficult bug to track down if you're not aware of the problem.
Describe the bug
When using the extend capabilities, if a variation's value does not match the shape of the extended tv result, it will add
[object Object]
to the class list rather than calculate the value.For example:
styles
uses an object to apply variations tovariation
, butextendedStyles
uses a string to apply to just thebase
.To Reproduce
Steps to reproduce the behavior:
class
Expected behavior
I expect that both
blue
andextended-blue
are applied to Button'sclass
.Screenshots
Desktop (please complete the following information):
Additional context
I'm using TypeScript 5.3.3, but on previous versions of TypeScript I believe it would simply omit
[object Object]
instead of adding in the desired class.The text was updated successfully, but these errors were encountered: