Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not allowed "theme" property added to settings.spacing.spacingScale #741

Open
valentin-grenier opened this issue Oct 26, 2024 · 0 comments

Comments

@valentin-grenier
Copy link

valentin-grenier commented Oct 26, 2024

If a spacing scale is defined in settings.spacing.spacingScale and if the user saves its theme to files from the site editor, a theme property is added to spacingScale as a child. It does not break the theme but the property is not allowed by schema ("Property theme is not allowed.").

Identified bug:

"spacingScale": {
	"theme": {
		"increment": 16,
		"mediumStep": 32,
		"operator": "+",
		"steps": 7,
		"unit": "px"
	}
},

Should be:

"spacingScale": {
	"increment": 16,
	"mediumStep": 32,
	"operator": "+",
	"steps": 7,
	"unit": "px"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant