This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 219
Category List block: add support for global style #5516
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…mmerce-gutenberg-products-block into add/4965-category-list
Enable global style for category list block
gigitux
added
block: single product
Issues related to the single product block.
focus: global styles
Issues that involve styles/css/layout structure.
focus: FSE
Work related to prepare WooCommerce for FSE.
labels
Jan 4, 2022
rubikuserbot
requested review from
a team and
tjcafferkey
and removed request for
a team
January 4, 2022 16:05
gigitux
added
the
status: blocked
The issue is blocked from progressing, waiting for another piece of work to be done.
label
Jan 4, 2022
Size Change: +1.07 kB (0%) Total Size: 816 kB
ℹ️ View Unchanged
|
18 tasks
…products-block into add/4965-category-list
gigitux
removed
the
status: blocked
The issue is blocked from progressing, waiting for another piece of work to be done.
label
Jan 12, 2022
dinhtungdu
approved these changes
Feb 13, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and this is working great on my end 🎉
@@ -39,10 +47,12 @@ const Block = ( { className }: Props ): JSX.Element | null => { | |||
className={ classnames( | |||
className, | |||
'wc-block-components-product-category-list', | |||
colorProps.className, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even colorProps.className
can be undefined
, we don't need to check for its value because undefined
is an expected value and will be skipped by classnames()
.
sunyatasattva
added
the
type: enhancement
The issue is a request for an enhancement.
label
Feb 14, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
block: single product
Issues related to the single product block.
focus: FSE
Work related to prepare WooCommerce for FSE.
focus: global styles
Issues that involve styles/css/layout structure.
type: enhancement
The issue is a request for an enhancement.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is blocked by #5515This PR adds support for global style for the component Product Title.
Now, the user can edit the style for:
Fixes #4965
Screenshots
without global style
with global style
Testing
Manual Testing
Check out this branch:
WordPress 5.9
, install and enable theGutenberg
plugin.Twenty Twenty-Two
theme.Single Product block
(this block containsProduct Title Block
) to a post.Category List Block
.Reset
button from the different sections.Styles
icon on the right-top corner.Category List Block
is shown under theBlocks
section. Personalize again the block.Changelog