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

Styles: add Editor Styles support #9008

Merged
merged 17 commits into from
Sep 5, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change the post-css plugin used (use a smarter one)
  • Loading branch information
youknowriad committed Sep 4, 2018
commit a3b983bb47ec4403c236ead85050038f3ac12143
127 changes: 46 additions & 81 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/editor/package.json
Original file line number Diff line number Diff line change
@@ -49,7 +49,7 @@
"lodash": "^4.17.10",
"memize": "^1.0.5",
"postcss": "^7.0.2",
"postcss-wrap": "^0.0.4",
"postcss-prefixwrap": "^1.3.0",
"react-autosize-textarea": "^3.0.2",
"redux-multi": "^0.1.12",
"redux-optimist": "^1.0.0",
4 changes: 2 additions & 2 deletions packages/editor/src/components/provider/index.js
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
*/
import { flow } from 'lodash';
import postcss from 'postcss';
import wrap from 'postcss-wrap';
import wrap from 'postcss-prefixwrap';

/**
* WordPress Dependencies
@@ -32,7 +32,7 @@ class EditorProvider extends Component {
if ( ! this.props.settings.styles ) {
return;
}
postcss( [ wrap( { selector: '.editor-block-list__block' } ) ] )
postcss( [ wrap( '.editor-block-list__block' ) ] )
.process( this.props.settings.styles )
.then( ( css ) => {
const node = document.createElement( 'style' );