wpengine / frost

The ultimate WordPress block theme for website designers and developers.
https://wordpress.org/themes/frost/
GNU General Public License v3.0
559 stars 144 forks source link

Move List styles to theme.json #157

Closed bgardner closed 11 months ago

bgardner commented 11 months ago

Per https://github.com/WordPress/gutenberg/pull/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 (https://github.com/WordPress/gutenberg/pull/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)"
        }
    }
},