Skip to content

Consider adding a plugin option to enable experimental block controls #34143

Open
@kjellr

Description

What problem does this address?

There are a number of block features that themes may opt-into via theme.json. For example:

"settings": {
	"color": {
		"link": true
	},
	"border": {
		"customColor": true,
		"customRadius": true,
		"customStyle": true,
		"customWidth": true
	},
	"spacing": {
		"customPadding": true
	},
	"typography": {
		"customFontSize": true,
		"customLineHeight": true
	}
}

When trying to test using the plugin, it's difficult to keep track of which themes support which features. I often go looking for one of these settings, only to find it's not opted into in my current theme. This requires me to either edit my theme's code, or go digging around to figure out what other theme does opt in. This also means it's hard to stay on top of new controls as they're added to the plugin — they won't show up for testers without an extra step in the theme they're using.

What is your proposed solution?

Would it be feasible to include a plugin-only checkbox to opt-in to all of these settings at once, regardless of your current theme? We already have an "Experimental settings" panel, and it seems like that would be a great place for this control.

Metadata

Assignees

No one assigned

    Labels

    Gutenberg PluginIssues or PRs related to Gutenberg Plugin management related efforts[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