[wp-trac] [WordPress Trac] #57904: Per-level styling of heading blocks does not work

WordPress Trac noreply at wordpress.org
Tue Mar 21 13:13:51 UTC 2023


#57904: Per-level styling of heading blocks does not work
---------------------------------------------+---------------------
 Reporter:  wongjn                           |       Owner:  (none)
     Type:  defect (bug)                     |      Status:  new
 Priority:  normal                           |   Milestone:  6.2
Component:  Themes                           |     Version:  trunk
 Severity:  normal                           |  Resolution:
 Keywords:  has-testing-info needs-dev-note  |     Focuses:
---------------------------------------------+---------------------
Changes (by hellofromTonya):

 * keywords:  has-testing-info => has-testing-info needs-dev-note


Comment:

 Update:

 It was determined that the Dev Note is incorrect. The change works on any
 block except the `core/heading` block.

 [https://github.com/WordPress/gutenberg/issues/49070#issuecomment-1477804359
 The Dev Note's example code] will change the block to `core/cover`
 instead:

 {{{
 {
         "styles": {
                 "elements": {
                         "h1": {
                                 "color": {
                                         "background": "blue"
                                 }
                         }
                 },
                 "blocks": {
                         "core/cover": {
                                 "elements": {
                                         "h1": {
                                                 "color": {
                                                         "background":
 "pink"
                                                 }
                                         }
                                 }
                         }
                 }
         }
 }
 }}}

 @bph, a 6.2 Docs co-Lead, has been notified in the Gutenberg issue.
 Marking as `needs-dev-note` to denote the change for tracking purposes.

 @costdev @mukesh27 no code changes are required. Might be good to keep
 this ticket open until the dev note change happens.

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


More information about the wp-trac mailing list