[wp-trac] [WordPress Trac] #62744: Twenty Seventeen: Quote block Appearance settings do not affect citation (was: Twenty Seventeen - Quote block appearance not work for ciation.)

WordPress Trac noreply at wordpress.org
Tue Dec 31 18:00:18 UTC 2024


#62744: Twenty Seventeen: Quote block Appearance settings do not affect citation
------------------------------+------------------------------
 Reporter:  nidhidhandhukiya  |       Owner:  (none)
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Bundled Theme     |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  2nd-opinion       |     Focuses:  css
------------------------------+------------------------------
Changes (by sabernhardt):

 * keywords:   => 2nd-opinion
 * focuses:   => css
 * type:  defect (bug) => enhancement
 * version:  6.7.1 =>


Comment:

 62744.patch would change the styles for every Quote block that does not
 assign a special `font-weight` and/or `font-style` in Appearance settings.
 It even would change styles for sites that do not use the block editor at
 all.

 Someone who has assigned a different Appearance on the Quote block might
 have intended to apply that style to the inner Paragraph only. (The custom
 style is currently the same whether it is set on the Quote block or its
 inner Paragraph block.)

 If someone assigns an Appearance setting on both the Quote block and an
 inner block, that could indicate a desire to change the citation style.
 The following is quite complex but possibly worth trying:
 {{{
 :root :where(.wp-block-quote[style*="font-weight"] *[style*="font-
 weight"]) ~ cite {
         font-weight: inherit;
 }
 :root :where(.wp-block-quote[style*="font-style"] *[style*="font-style"])
 ~ cite {
         font-style: inherit;
 }
 }}}

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


More information about the wp-trac mailing list