mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Editor: Add viewStyle property to block.json for frontend-only block styles
Related issue in Gutenberg: https://github.com/WordPress/gutenberg/issues/54491. For block scripts there was already `script`, `viewScript` and `editorScript`. For block styles there was only `style` and `editorStyle`. This brings the parity. Props gaambo. Fixes #59673. git-svn-id: https://develop.svn.wordpress.org/trunk@57493 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
1
tests/phpunit/data/blocks/notice/block-view.css
Normal file
1
tests/phpunit/data/blocks/notice/block-view.css
Normal file
@@ -0,0 +1 @@
|
||||
/* Test front end only CSS file */
|
||||
@@ -70,5 +70,6 @@
|
||||
"viewScript": [ "tests-notice-view-script", "tests-notice-view-script-2" ],
|
||||
"editorStyle": "tests-notice-editor-style",
|
||||
"style": [ "tests-notice-style", "tests-notice-style-2" ],
|
||||
"viewStyle": [ "tests-notice-view-style" ],
|
||||
"render": "file:./render.php"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user