Open
Description
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
- Take Navigation block;
- Enable "Open on click" toggle so that the link turns into a button;
- 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