[wp-trac] [WordPress Trac] #58024: Twenty Twenty: button block link does not inherit custom letter spacing (was: Twenty Twenty theme button block having issue with letter spacing.)

WordPress Trac noreply at wordpress.org
Thu Mar 30 17:37:21 UTC 2023


#58024: Twenty Twenty: button block link does not inherit custom letter spacing
------------------------------+------------------------------
 Reporter:  nidhidhandhukiya  |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Bundled Theme     |     Version:  6.2
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:  css
------------------------------+------------------------------
Changes (by sabernhardt):

 * focuses:   => css


Comment:

 I think this would be better to fix in the editor for //any// theme. If
 the inline style stays on the parent element, the link could inherit the
 `letter-spacing` and any other properties.

 Button block links already inherit custom `text-decoration` from the `wp-
 block-button` element, but that is the only CSS property I found in the
 block library `style.css`.
 {{{
 .wp-block-button[style*="text-decoration"] .wp-block-button__link {
   text-decoration: inherit;
 }
 }}}

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


More information about the wp-trac mailing list