Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 4046f54

Browse files
AljulluTarun Vijwani
authored andcommitted
Add global styles to Product Categories List block in WC core
1 parent d88081c commit 4046f54

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

assets/js/blocks/product-categories/block.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@
44
"category": "woocommerce",
55
"description": "Show all product categories as a list or dropdown.",
66
"keywords": [ "WooCommerce" ],
7+
"supports": {
8+
"align": [ "wide", "full" ],
9+
"html": false,
10+
"color": {
11+
"background": false,
12+
"link": true
13+
},
14+
"typography": {
15+
"fontSize": true,
16+
"lineHeight": true
17+
}
18+
},
719
"attributes": {
820
"align": {
921
"type": "string"

assets/js/blocks/product-categories/index.tsx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*/
44
import { createBlock, registerBlockType } from '@wordpress/blocks';
55
import { Icon, listView } from '@wordpress/icons';
6-
import { isFeaturePluginBuild } from '@woocommerce/block-settings';
76

87
/**
98
* Internal dependencies
@@ -22,21 +21,6 @@ registerBlockType( metadata, {
2221
/>
2322
),
2423
},
25-
supports: {
26-
align: [ 'wide', 'full' ],
27-
html: false,
28-
...( isFeaturePluginBuild() && {
29-
color: {
30-
background: false,
31-
link: true,
32-
},
33-
typography: {
34-
fontSize: true,
35-
lineHeight: true,
36-
},
37-
} ),
38-
},
39-
4024
transforms: {
4125
from: [
4226
{

0 commit comments

Comments
 (0)