Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update/post author block alignment #40380

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

Alex-Kostov
Copy link
Contributor

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-content in order to align both text and image.

Testing Instructions

  1. Create new post.
  2. Add Post Author block
  3. Test the block alignment

Screenshots or screencast

Image after the fix, here we can see that both the text and the image can be aligned at the center.
image

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

Align text block options now align both the Image and the text, before it was aligning only the text.

Fixes WordPress#35964
@skorasaurus skorasaurus added the [Block] Post Author Affects the Post Author Block label Apr 25, 2022
@paaljoachim
Copy link
Contributor

@michalczaplinski and @c4rl0sbr4v0 Perhaps you can take a look at this PR?

Copy link
Contributor

@cbravobernal cbravobernal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Post Author Affects the Post Author Block
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants