Skip to content

Site Title: Impossible to override theme.json setting with an instance of the block. #42330

@scruffian

Description

@scruffian

Description

It is impossible to override theme.json setting with an instance of the Site Title block.

Step-by-step reproduction instructions

Add this to your theme.json file:

			"core/site-title": {
				"elements": {
					"link": {
						"color": {
							"text": {
								"ref": "styles.color.text"
							}
						}
					}
				}
			}

Now add the site title block to a template/post and modify the color of the link. The setting from theme.json takes priority still.

Screenshots, screen recording, code snippet

Screenshot 2022-07-11 at 16 23 21

Screenshot 2022-07-11 at 16 23 54

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Block] Site TitleAffects the Site Title Block[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions