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

Float based alignments are causing layout issues for adjacent blocks #209

Open
1 task done
seanjessen opened this issue Feb 7, 2024 · 0 comments
Open
1 task done
Assignees
Labels

Comments

@seanjessen
Copy link

Describe the bug

When a block alignment is set for the last block within the content area of a page this can cause a layout issue with the footer. As the current approach for block alignments uses floats these are not cleared.

Suggested Requirements:

  • aligns floated elements to the side
  • allows text to wrap next to the floated element
  • doesn’t cause odd layout issues for following blocks that use the full content width. (like another non floated image)
  • doesn’t cause odd layout issues for elements outside of the article content when a floated element is the last child / close to the end of the article

Steps to Reproduce

  1. Add blocks within the block editor and set the last block to align left, center or right.
  2. On the FE the footer will align on too the same line as the last block element

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@fabiankaegy fabiankaegy changed the title Block alignment setting causing layout issues in page Float based alignments are causing layout issues for adjacent blocks Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants