Skip to content

core/navigation-submenu: Cannot style button element via theme.json #69412

Open
@EldarAgalarov

Description

@EldarAgalarov

Description

The button element styling via theme.json is ignored for the core/navigation-submenu block:

"core/navigation-submenu": {
	"elements": {
		"button": {
			"border": {
				"radius": "5px"
			},
			"color": {
				"background": "red"
			},
			"spacing": {
				"padding": {
					"top": "20px",
					"right": "20px",
					"bottom": "20px",
					"left": "20px"
				}
			}
		}
	}
}

Step-by-step reproduction instructions

  1. Take Navigation block;
  2. Enable "Open on click" toggle so that the link turns into a button;
  3. Try to style this button via theme.json code above. You must see that button style is not applicable.

Screenshots, screen recording, code snippet

No response

Environment info

WP 6.8b1

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [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