Update/post author block alignment#40380
Update/post author block alignment#40380Alex-Kostov wants to merge 2 commits intoWordPress:trunkfrom
Conversation
Align text block options now align both the Image and the text, before it was aligning only the text. Fixes WordPress#35964
|
@michalczaplinski and @c4rl0sbr4v0 Perhaps you can take a look at this PR? |
cbravobernal
left a comment
There was a problem hiding this comment.
Thanks for your contribution @Alex-Kostov !
I think is not a good idea to add block-specific styles to a common SCSS file. Could we fix this issue only in the post-author context?
|
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
|
Hi everyone, the Post Author block has been deprecated, so I think we don't need to address this issue anymore. See #55352 for more details. |
What?
This pull request is providing an update for the Post Author block.
Currently the Post Author block have an option to align the text left / center / right, however this aligns do not include the image. In this pull request I've updated the code so that when align option is used it align both text and image.
Why?
This PR is fixing this issue 35964
How?
About the details I've used
justify-contentin order to align both text and image.Testing Instructions
Screenshots or screencast
Image after the fix, here we can see that both the text and the image can be aligned at the center.

Video how we can change the alignment
https://drive.google.com/file/d/1MIyz5oggYGeGCf5CQcZWzvS9Z2ecA4p1/view?usp=sharing