Skip to content

Pr/7794 Redux -- Core 4.9 / Custom CSS#8028

Merged
oskosk merged 28 commits into
masterfrom
pr/7794
Oct 25, 2017
Merged

Pr/7794 Redux -- Core 4.9 / Custom CSS#8028
oskosk merged 28 commits into
masterfrom
pr/7794

Conversation

@georgestephanis

@georgestephanis georgestephanis commented Oct 20, 2017

Copy link
Copy Markdown
Contributor

Fixes #7794

Minimum revision of core to test against: https://core.trac.wordpress.org/changeset/41992

westonruter and others added 3 commits September 16, 2017 14:45
Adding it in twice is bad -- the first time shouldn't need it?

May need to evaluate dependencies for what Core ships and bundles though for less/sass.
This uses specificity to match Core styles and adjusts the height to accomodate core style changes.
We need to maintain an old version of the file for pre-4.9 versions of WordPress as we support vCurr and vCurr - 1.
This should help clear out the cruft.  Let's start over and rearchitect the file.
We need this to be `jetpackCss`
We don't really need to override it any longer, I don't think.
@georgestephanis

Copy link
Copy Markdown
Contributor Author

This PR is dependent on https://core.trac.wordpress.org/changeset/41974 being in your core checkout. If something's screwy, try a svn up first.

@georgestephanis georgestephanis added [Pri] BLOCKER [Status] Needs Design Review Design has been added. Needs a review! [Status] Needs Review This PR is ready for review. labels Oct 23, 2017
@georgestephanis georgestephanis added this to the 5.5 milestone Oct 23, 2017
@georgestephanis

Copy link
Copy Markdown
Contributor Author

Please test this for functionality and behavior, as well as regressions.

@georgestephanis

Copy link
Copy Markdown
Contributor Author

Vizrec:

Old version in core 4.8.2:

screen shot 2017-10-24 at 11 05 09 am

New version in Core 4.9-beta?

screen shot 2017-10-24 at 11 04 04 am

I had to adjust the editor height down a bit, which shrunk the old one a bit too, but that's small potatoes and only for folks running older versions of core.

@georgestephanis

Copy link
Copy Markdown
Contributor Author

If testing this, make sure you're up to https://core.trac.wordpress.org/changeset/41992 on your core checkout.

@zinigor

zinigor commented Oct 24, 2017

Copy link
Copy Markdown
Contributor

Tested with Core both before 41992 and after, everything seems to be working correctly. There's one minor problem that I have noticed. If you follow these steps:

  • start with a blank CSS;
  • type up a valid CSS modification with SASS (or LESS) that's not backwards CSS compatible, like a { &:hover{ color: red; } };
  • abandon customizing;
  • return to the customizer and restore the revision;
  • see the errors that only disappear after you toggle the preprocessor.

@georgestephanis

Copy link
Copy Markdown
Contributor Author

To clarify, the errors only display when the mode is set to CSS right? That's expected as it's invalid css.

@georgestephanis

Copy link
Copy Markdown
Contributor Author

Or do you mean that the css persists but preprocessor selection doesn't? @zinigor

@zinigor

zinigor commented Oct 24, 2017

Copy link
Copy Markdown
Contributor

Yes, sorry, I meant that the selector persists, but the errors still get displayed as though it's set to be simple CSS.

@georgestephanis

Copy link
Copy Markdown
Contributor Author

Got the design review from @MichaelArestad yesterday, clearing the tag.

@georgestephanis georgestephanis removed the [Status] Needs Design Review Design has been added. Needs a review! label Oct 24, 2017

@zinigor zinigor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Disregard my latest comment - I can no longer reproduce the problem, plus it was really minor, should not be a problem to anyone.

@zinigor zinigor added [Status] Ready to Merge Go ahead, you can push that green button! and removed [Status] Needs Review This PR is ready for review. labels Oct 24, 2017
@oskosk oskosk merged commit 84e9054 into master Oct 25, 2017
@oskosk oskosk deleted the pr/7794 branch October 25, 2017 13:59
@oskosk oskosk removed the [Status] Ready to Merge Go ahead, you can push that green button! label Oct 25, 2017
@jeherve jeherve added [Status] Needs Changelog [Status] Needs Testing We need to add this change to the testing call for this month's release and removed [Status] Needs Changelog [Status] Needs Testing We need to add this change to the testing call for this month's release labels Oct 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants