-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Type] Developer DocumentationDocumentation for developersDocumentation for developers[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Description
What problem does this address?
For styles.elements.button.spacing.padding in theme.json, only objects with fields top, right, bottom, and left are allowed. However, the default theme.json specifies a string. Therefore, the code editor reports this field as an error.
What is your proposed solution?
It actually seems to work correctly with a string, but I think one of the following improvements is needed.
- Rewrite to object in default theme.json
- If the specification is expected to accept a string, update the JSON schema
Metadata
Metadata
Assignees
Labels
Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Type] Developer DocumentationDocumentation for developersDocumentation for developers[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
