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

Try: Move figure clearing CSS to editor style. #17737

Merged
merged 1 commit into from
Oct 3, 2019
Merged

Conversation

jasmussen
Copy link
Contributor

Fixes #11234. Alternative to #10228.

This PR fixes an issue where styles meant for the editor bled into the theme.

The editor has styles for alignleft, center, right, wide, fullwide. But it does not output styles for wide and fullwide to the theme itself. The idea is for theme developers to write their own alignfull rules in the theme, and that by opting in using add_theme_support( 'align-wide' );, they explicitly declare to have written those rules.

This is mainly because there are a million different ways to add wide alignments — negative margins, unbounded main column, vw units. And even then, what full-wide means can be interpreted differently by the theme, just like how TwentyNineteen interprets Align Right to pull it out of the main column.

#10228, although it fixed a problem and is needed, output that fix to the style file, which outputs it on the frontend also. That was a mistake. It should be editor only.

@jasmussen jasmussen added [Type] Bug An existing feature does not function as intended [Type] Regression Related to a regression in the latest release labels Oct 3, 2019
@jasmussen jasmussen self-assigned this Oct 3, 2019
Copy link
Contributor

@youknowriad youknowriad left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@youknowriad
Copy link
Contributor

You should try to rebase, I think e2e intermittent failures are fixed in master.

Fixes #11234. Alternative to #10228.

This PR fixes an issue where styles meant for the editor bled into the theme.
@jasmussen
Copy link
Contributor Author

Rebased, let's see if the checks pass. If they do, feel free to merge if I don't get to it.

@youknowriad youknowriad merged commit ed5ec9a into master Oct 3, 2019
@youknowriad youknowriad deleted the try/alt-wide-fix branch October 3, 2019 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug An existing feature does not function as intended [Type] Regression Related to a regression in the latest release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Image & Cover Block SCSS inconsistent with Media&Text & Embed Block - Forces Theme Acrobatics
2 participants