[wp-trac] [WordPress Trac] #58539: Twenty Seventeen: Image block figcaption text alignment inconsistency (was: Twenty Seventeen - figcaption text alignment inconsitency)

WordPress Trac noreply at wordpress.org
Wed Jun 14 20:48:26 UTC 2023


#58539: Twenty Seventeen: Image block figcaption text alignment inconsistency
---------------------------+------------------------------
 Reporter:  nkeller15      |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Bundled Theme  |     Version:  5.8
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:  css
---------------------------+------------------------------
Changes (by sabernhardt):

 * focuses:   => css
 * version:  6.2.2 => 5.8


Comment:

 The Image block's captions have been aligned left on the front end since
 the block editor was made public (r43800). The discrepancy began in
 WordPress 5.8 when the block class list started with "wp-block-" `block-
 editor-block-list__block` before `wp-block-image`, which made the
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyseventeen/assets/css/editor-blocks.css?rev=55913#L463
 editor styles' selector] meaningless.

 One way to fix it in the editor is adding a selector that does not require
 a certain order:
 {{{
 [class^="wp-block-"]:not(.wp-block-gallery) figcaption,
 [class*=" wp-block-"]:not(.wp-block-gallery) figcaption
 }}}

 Related: #56747

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


More information about the wp-trac mailing list