-
Notifications
You must be signed in to change notification settings - Fork 244
Closed
Description
For some reason, a style with border: none throws ERROR: data did not match any variant of untagged enum ValueOrVec on visitor even when untouched. Commenting border: none and the output works fine. I'm not sure which other properties has this behavior.
I'm trying to modify selectors but this issue, which is kinda unrelated to my goal, serves as a huge blocker.
Edit:
After experimenting a bit, it seems that border: none's AST is
{
property: 'border',
value: { width: { type: 'medium' }, style: 'none', color: 'currentcolor' }
}whereas in the type definitions, currentcolor is defined as
export type CurrentColor = {
type: "currentcolor";
};so the correct output must be
{
property: 'border',
value: {
width: {
type: 'medium'
},
style: 'none',
color: {
type: 'currentcolor'
}
}
}on the contrary, the color property is defined as a union of object types so it can never be string. The issue here is at the AST generation.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels