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 #157

Closed
bgardner opened this issue Oct 16, 2023 · 0 comments
Closed

Move List styles to theme.json #157

bgardner opened this issue Oct 16, 2023 · 0 comments
Milestone

Comments

@bgardner
Copy link
Collaborator

bgardner commented Oct 16, 2023

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

/* -- List -- */

.is-style-no-disc {
	list-style-type: none;
	padding-left: 0;
}

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-disc {list-style-type: none; padding-left: 0;}",
	"spacing": {
		"padding": {
			"left": "var(--wp--custom--spacing--gap)"
		}
	}
},
@bgardner bgardner added this to the v1.0.7 milestone Oct 16, 2023
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