• Resolved leemon

    (@leemon)


    Hi,

    Checking the WP 6.2 theme.json schema, I see that there’s a new “variation” key for blocks:

    https://raw.githubusercontent.com/WordPress/gutenberg/wp/6.2/schemas/json/theme.json

    "stylesPropertiesAndElementsComplete": {
    "type": "object",
    "allOf": [
    {
    "$ref": "#/definitions/stylesProperties"
    },
    {
    "properties": {
    "border": {},
    "color": {},
    "spacing": {},
    "typography": {},
    "filter": {},
    "shadow": {},
    "outline": {},
    "css": {},
    "elements": {
    "$ref": "#/definitions/stylesElementsPropertiesComplete"
    },
    "variations": {
    "$ref": "#/definitions/stylesVariationPropertiesComplete"
    }
    },
    "additionalProperties": false
    }
    ]
    },
    "stylesVariationPropertiesComplete": {
    "type": "object",
    "patternProperties": {
    "^[a-z][a-z0-9-]*$": {
    "$ref": "#/definitions/stylesPropertiesComplete"
    }
    }
    }

    I’m wondering what this new key will be used for. Is this for block styles or block variations?

    Thanks

    • This topic was modified 1 year, 3 months ago by t-p. Reason: Moved to Alpha/Beta/RC from Developing with WordPress
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Variations in WP 6.2 theme.json schema’ is closed to new replies.