This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Alignment attribute is unpredictable with two blocks that support it #8336
Labels
block-type: product elements
Issues related to Product Element blocks.
team: Kirigami & Origami
type: bug
The issue/PR concerns a confirmed bug.
Description
There're many blocks that support
align
attribute with options:none
,wide
,full
to choose from. When there's more than one block within theGroup
that support it, they start to behave unpredictable.Steps to reproduce
Products by Category
alignment
options, e.g.: Products, Featured Products.align
options, save and check the results in frontendExpected:
align
always follow what's in EditorActual: Changing the
align
attribute in one block, affects the other. Sometimes the change is not reflected in EditorVideo/screenshots
Video with Products and Featured Product - featured Product disappears every second update. Also Products alignment setting is not respected on the frontend:
https://user-images.githubusercontent.com/20098064/215533429-abea3897-65aa-4caf-82f2-3c9c4f0e4772.mov
Video with Breadcrumbs block (in development) with Products block - both support
align
option. Reproducible inadd/convert-classic-template
branch:https://user-images.githubusercontent.com/20098064/215531378-7c2a342a-376f-4196-a8f5-c1c226e39970.mov
Environment
WordPress: 6.1.1
Gutenberg: 15.0.1
WooCommerce Blocks: 9.5.0-dev
The text was updated successfully, but these errors were encountered: