Skip to content

Default theme.json: The definition of styles.elements.button.spacing.padding is incorrect #60404

@t-hamano

Description

@t-hamano

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.

image

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

No one assigned

    Labels

    Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Type] Developer DocumentationDocumentation for developers[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions