Community forum for knowledge and support

Updated 8 months ago

Variable Attachment Causing Class Sync Issues

At a glance

The community member is experiencing issues with classes not syncing when a variable is attached to the class. They have checked that class sync is turned on and there are no existing duplicates of any classes. All classes sync fine when no variables are attached, but when a simple font family variable is attached to a heading/text class, duplicate classes are created. However, some other classes are synced just fine when a variable is attached. The community member is unsure if they are doing something wrong or if this is a known issue.

In the comments, another community member confirms that this is a known bug and it is on their list to resolve. They mention that the extension and font variables do not play nicely together, and they will provide an ETA on the resolution of this bug. The original community member is thankful for the information and says they can work around it for now.

I'm having problems with classes not syncing when a variable is attached to the class.

  1. I have class sync turned on in the plugin
  2. I have checked to ensure no existing duplicates of any classes
  3. All classes sync fine when no variables are attached to any class
  4. When I attach a simple font family variable to a heading/text class, duplicate classes are created (eg. Setting a font-family variable on heading-style-h1)
  5. Strangely, some other classes are synced just fine when variable is attached (eg. If I attach a size variable to the max-width property of container-large)

Am I doing something wrong here or is this a known issue?
Thanks!

M
J
2 comments

okay yeah, this is a known bug for us and its on our list. But yeah our extension and font variables don't play nicely together. Let me get you an ETA on the resolution of this bug. Apologies for the issues here Jaime.

thanks matt! that's good to know, I can work around it for now πŸ‘

Add a reply
Sign up and join the conversation on Slack