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

Fix/325 photo essay block styles in 5.7 #334

Conversation

acketon
Copy link
Member

@acketon acketon commented Mar 31, 2023

Fixes #325

In WP 5.4 and earlier an :after element was used to force the child blocks to have a specific height via the padding-top technique. But in WP 5.7 the block editor has started using an :after element on the same DOM element for block outlines. This caused the blocks to collapse to 0px height.

Ideally I think it's time to rebuild this block to use flexbox now that browser support is much better than in 2019 when this was originally built. The block's CSS could probably be simplified quite a bit if we did that in a future update.

acketon added 2 commits March 31, 2023 14:34
…dding-top technique

In 5.4 the :after element was used to do this but in 5.7 the block editor is using the :after element for block outlines and we need a new element to force the child blocks to have height.
@acketon acketon changed the base branch from develop to wp-upgrade/5.7-base-compatibility March 31, 2023 19:00
…ssay-block-styles-in-5.7

# Conflicts:
#	dist/blocks.build.js
@acketon acketon merged commit f292fe0 into wp-upgrade/5.7-base-compatibility Mar 31, 2023
@acketon acketon deleted the fix/325-photo-essay-block-styles-in-5.7 branch March 31, 2023 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WP5.7 - Photo Essay block editor styles are broken making block unusable
2 participants