-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
[Feature] LayoutLayout block support, its UI controls, and style output.Layout block support, its UI controls, and style output.[Feature] ThemesQuestions or issues with incorporating or styling blocks in a theme.Questions or issues with incorporating or styling blocks in a theme.[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
The documented way to turn off the spacing scale (see "Disable the spacing scale" section) is to set settings.spacing.spacingScale.steps to 0.
In VS Code, that now produces the warning:
Value is below the minimum of 1.
I don't think it's directly relevant, but the recently filed #62520 is also about changes to theme.json schema impacting valid spacing values.
Step-by-step reproduction instructions
- Create a
theme.jsonfile - Use the following value and observe a warning for the value "0" on line 7 in VS Code
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 2,
"settings": {
"spacing": {
"spacingScale": {
"steps": 0
}
}
}
}Screenshots, screen recording, code snippet
No response
Environment info
- WordPress 6.5
- No Gutenberg
- Custom hybrid theme
- VS Code
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
No
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Feature] LayoutLayout block support, its UI controls, and style output.Layout block support, its UI controls, and style output.[Feature] ThemesQuestions or issues with incorporating or styling blocks in a theme.Questions or issues with incorporating or styling blocks in a theme.[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Type
Fields
Give feedbackNo fields configured for issues without a type.