Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move List styles to theme.json #5

Closed
bgardner opened this issue Sep 29, 2023 · 1 comment
Closed

Move List styles to theme.json #5

bgardner opened this issue Sep 29, 2023 · 1 comment

Comments

@bgardner
Copy link
Owner

Per WordPress/gutenberg#53602, it should be safe to move this to theme.json:

/* -- List -- */

.is-style-no-style {
	list-style-type: none;
	padding-left: 0;
}
@bgardner
Copy link
Owner Author

bgardner commented Oct 5, 2023

Per Gutenberg 16.8 RC1 (WordPress/gutenberg#54981) confirmed this is working in theme.json. Will merge once it’s included in WP6.4 Beta or RC.

"core/list": {
	"css": "&.is-style-no-style {list-style-type: none; padding-left: 0;}",
	"spacing": {
		"padding": {
			"left": "var(--wp--custom--spacing--gap)"
		}
	}
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant