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

Add global styles to Product Categories List block in WC core #6906

Merged
merged 1 commit into from
Aug 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions assets/js/blocks/product-categories/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@
"category": "woocommerce",
"description": "Show all product categories as a list or dropdown.",
"keywords": [ "WooCommerce" ],
"supports": {
"align": [ "wide", "full" ],
"html": false,
"color": {
"background": false,
"link": true
},
"typography": {
"fontSize": true,
"lineHeight": true
}
},
"attributes": {
"align": {
"type": "string"
Expand Down
16 changes: 0 additions & 16 deletions assets/js/blocks/product-categories/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
*/
import { createBlock, registerBlockType } from '@wordpress/blocks';
import { Icon, listView } from '@wordpress/icons';
import { isFeaturePluginBuild } from '@woocommerce/block-settings';

/**
* Internal dependencies
Expand All @@ -22,21 +21,6 @@ registerBlockType( metadata, {
/>
),
},
supports: {
align: [ 'wide', 'full' ],
html: false,
...( isFeaturePluginBuild() && {
color: {
background: false,
link: true,
},
typography: {
fontSize: true,
lineHeight: true,
},
} ),
},

transforms: {
from: [
{
Expand Down