[wp-trac] [WordPress Trac] #49843: Twenty Nineteen: Fix editor style compatibility with Gutenberg 7.7 and above

WordPress Trac noreply at wordpress.org
Fri Jul 3 00:25:03 UTC 2020


#49843: Twenty Nineteen: Fix editor style compatibility with Gutenberg 7.7 and
above
---------------------------+---------------------
 Reporter:  kjellr         |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  5.5
Component:  Bundled Theme  |     Version:  trunk
 Severity:  normal         |  Resolution:
 Keywords:  needs-testing  |     Focuses:
---------------------------+---------------------

Comment (by kjellr):

 @Joen when you have a moment, check out [attachment:"49843.3.patch"]. I
 think the last patch broke due to a couple things:

 - The editor now has different left/right margin measurements.
 - The DOM structure for wide/full blocks in the editor has also changed.

 I'm not 100% sure those new `.alignfull`/`.alignwide` classes are
 necessary... I thought there was an effort to switch to those classnames
 in the editor, but  it looks like most blocks in the editor currently have
 a `.wp-block[data-align="wide"]` wrapper, and do not have the `alignfull`
 or `alignwide` classname.

 In any case, this seems to work for me, but it could definitely use more
 testing!

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


More information about the wp-trac mailing list