[wp-trac] [WordPress Trac] #58708: Twenty Seventeen: Table caption alignment is different in editor and frontend (was: Twenty Seventeen : Table caption alignment is different in editor and frontend)

WordPress Trac noreply at wordpress.org
Tue Jul 4 15:07:15 UTC 2023


#58708: Twenty Seventeen: Table caption alignment is different in editor and
frontend
-----------------------------+------------------------------
 Reporter:  pitamdey         |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Bundled Theme    |     Version:  5.8
 Severity:  normal           |  Resolution:
 Keywords:  has-screenshots  |     Focuses:  css
-----------------------------+------------------------------
Changes (by sabernhardt):

 * version:   => 5.8


Comment:

 Thanks for the report!

 The `figcaption` for all blocks except the Gallery was set to align left,
 not center, in both the editor and front. However, the `.wp-block-table`
 class is not the first in the attribute within the editor, so `[class
 ^="wp-block-"]` does not work there.

 {{{
 [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
   font-style: italic;
   margin-bottom: 1.5em;
   text-align: left;
 }
 }}}

 The patch on #56747 should fix this, too.

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


More information about the wp-trac mailing list