Currently these previews depend on the same variables being set in the root scope of the theme editor.
This doesn't work if a more specific scope is used to assign the value.
Should be fixed by "manually" resolving these values in the previews. (for some reason snipping tool made everything lighter 😕 )
While in this case the variable control does show the right value, I remember running into cases where both were unable.
It's only the preview, though, if you open the referenced variable, it does already have the correct value. The latter might be a separate issue from the group level previews.
Currently these previews depend on the same variables being set in the root scope of the theme editor. This doesn't work if a more specific scope is used to assign the value.
Should be fixed by "manually" resolving these values in the previews. (for some reason snipping tool made everything lighter 😕 )
This example is a local snapshot taken from https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Math. This could actually be a separate issue, as it seems to assign the wrong value, rather than not finding the right one.
While in this case the variable control does show the right value, I remember running into cases where both were unable.
It's only the preview, though, if you open the referenced variable, it does already have the correct value. The latter might be a separate issue from the group level previews.