[wp-trac] [WordPress Trac] #59673: Add viewStyle block.json property for frontend-only block styles

WordPress Trac noreply at wordpress.org
Wed Jan 31 09:09:37 UTC 2024


#59673: Add viewStyle block.json property for frontend-only block styles
-----------------------------------------------------+---------------------
 Reporter:  gaambo                                   |       Owner:  gziolo
     Type:  enhancement                              |      Status:  closed
 Priority:  normal                                   |   Milestone:  6.5
Component:  Editor                                   |     Version:  6.4
 Severity:  normal                                   |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests needs-dev-note  |     Focuses:
-----------------------------------------------------+---------------------
Changes (by gziolo):

 * owner:  (none) => gziolo
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"57493" 57493]:
 {{{
 #!CommitTicketReference repository="" revision="57493"
 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.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59673#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list