Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

the build css takes priority during editing with WordPress 5.0 #114

Open
WYKDev opened this issue Dec 6, 2018 · 5 comments
Open

the build css takes priority during editing with WordPress 5.0 #114

WYKDev opened this issue Dec 6, 2018 · 5 comments

Comments

@WYKDev
Copy link

WYKDev commented Dec 6, 2018

I have been observing an issue with the system enqueing css in the wrong order. With Wordpress 5.0, it seems that the block.style.build.css will take priority during editing.

I didn't expereince this prior the release. So I try to rearrange the code in src/init.php. It doesn't seem to do anything.

So my question is how do I change this behavior?

Please see screenshot

issue

@WYKDev WYKDev changed the title the build css takes priority over the editor css with Wordpress 5.0 the build css takes priority during editing with Wordpress 5.0 Dec 6, 2018
@kimruddock
Copy link

Having same issue.

@nicoandrade
Copy link

Same issue, a quick fix for now is if you edit line 58 on init.php.
Basically add the style.scss as a dependency for editor.scss, example:
array( 'wp-edit-blocks', 'quema_labs_blocks-cgb-style-css' )

@ahmadawais
Copy link
Owner

@nicoandrade feel free to send me a PR for this?

@nicoandrade
Copy link

Done :)
#126

@ahmadawais ahmadawais changed the title the build css takes priority during editing with Wordpress 5.0 the build css takes priority during editing with WordPress 5.0 Jan 11, 2019
@mrgrt
Copy link

mrgrt commented Jan 14, 2019

Is this being merged? Still seems to be an issue.

Thanks for all your hard work @ahmadawais 🙂

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants