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
I made a custom utility for width and set the values equal to 1 and 2. The types for this utility accept 1/2 due to the WithColorOpacityModifier allowing strings that start with a value and contain a forward slash, e.g. ${T}/.
The text was updated successfully, but these errors were encountered:
cgatian
changed the title
WithEscapeHatch allows invalid token values
WithEscapeHatch allows invalid token values with "/"
Feb 20, 2025
cgatian
changed the title
WithEscapeHatch allows invalid token values with "/"
WithEscapeHatch allows invalid token values when "/" is used
Feb 20, 2025
Description
I made a custom utility for width and set the values equal to
1
and2
. The types for this utility accept1/2
due to theWithColorOpacityModifier
allowing strings that start with a value and contain a forward slash, e.g.${T}/
.Link to Reproduction
https://play.panda-css.com/NgeBz8-8QC
Steps to reproduce
1
and2
are the only allowed valuesJS Framework
No response
Panda CSS Version
0.53.0
Browser
No response
Operating System
Additional Information
WithEscapeHatch
unionsWithColorOpacityModifier
which allows strings that contain{token}/{string}
.Perhaps there would be two
WithEscapeHatch
types, one specifically forgroup:color
and one for all other properties? Something like:The text was updated successfully, but these errors were encountered: