Open g-elwell opened 2 weeks ago
It's likely this is due to the component failing to parse the original value, perhaps due to use of calc
or var
. As well as (or instead of?) fixing this instance, we should prevent the value from updating when the parsing has failed, or we could unexpectedly hit this issue again.
Expected Behavior
When navigating through the UI and editing different styles, no changes should be made unless specifically updated by a user.
Actual Behavior
When navigating to a block with spacing set in the theme.json, the styles update to clear the spacing.
Step-by-step reproduction instructions
Screenshots, screen recordings, code snippets
This is noticeable in the visual preview from #111 and less obvious when viewing the 'code preview'. However, note that the original spacing in theme.json is:
But when navigating to the Quote block, the styles will show:
https://github.com/user-attachments/assets/dce05ea3-99fb-4066-a0fc-5eaafc029595