Open iMoses-Apiiro opened 2 years ago
It looks like an issue from stylis. As a workaround, you can redefine preprocessor
in your config.
Suffering the same problem... @Anber could you provide more details about this workaround ?
I found a workaround
const SkeletonItem = styled.div`
--animation: pulse;
animation: var(--animation) 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
`;
but... I'm getting some many headaches with linaria...
Environment
Description
Animation names are being suffixed with the generated className even if no animation is defined with that name.
This causes a condition in which it's impossible to use globally defined animations, as linaria will mess up the names.
Reproducible Demo
making it impossible to use a globally defined
@keyframe
by the name ofrotate-3d
Expected behavior: only apply suffix if an animation exists.
P.S. I guess there's another hidden bug here, animations can't be used when extending components because the different suffixes will cause the names not to match