fixed the group block alignment issue when background color is selected#42910
Closed
Smit2808 wants to merge 1 commit intoWordPress:trunkfrom
Smit2808:update/group-alignment-issue
Closed
fixed the group block alignment issue when background color is selected#42910Smit2808 wants to merge 1 commit intoWordPress:trunkfrom Smit2808:update/group-alignment-issue
Smit2808 wants to merge 1 commit intoWordPress:trunkfrom
Smit2808:update/group-alignment-issue
Conversation
Contributor
|
I am concerned that, for users who are already using this combination of aligned blocks inside a group, this is a big change to the layout: The sample blocks used: |
Contributor
|
In this comment, there is a suggestion to make this an option in the Advanced panel in the block settings sidebar. I am not sure what the best solution is. I don't think we can expect all users to understand that this was a bug, for many this will be a breaking change to existing content. |
Contributor
Author
|
Hi @carolinan , Your point is right. I am trying another solution to solve this and If it gets solved then I will create PR and tag you. Thanks for your input. |
This pull request was closed.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.


What?
This PR can solve the issue: #39344 and #40131. The issue is in the group block when we add some blocks like image block in the group block and the background color is selected and we give left or right alignment then the group block is not working properly. Attaching the video link for a better understanding of the issue.
Video link: https://www.loom.com/share/1af8bccffeb34067af5906947fc05ed9
My PR is working for all the cases like in this issue: #40131. The same thing is happening for the Social icons block. In my ticket, the issue is happening when the image block is added to the group block and in this case, it is happening when the Social icons block is added to the group block. I checked it and found that issue is in the group block So I created PR for group block alignment.
How?
When we add some block like image block in group block and give the alignment left or right to group block then group block is not wrapping the image block in it. So I added the overflow auto CSS in group block. Now it is working for all blocks.
Testing Instructions
Screenshots or screencast