[wp-trac] [WordPress Trac] #58991: Twenty Twenty-One: Button block link does not use font-weight from Appearance setting

WordPress Trac noreply at wordpress.org
Tue Apr 9 17:11:07 UTC 2024


#58991: Twenty Twenty-One: Button block link does not use font-weight from
Appearance setting
-------------------------------------+-----------------------------
 Reporter:  wildworks                |       Owner:  (none)
     Type:  defect (bug)             |      Status:  reopened
 Priority:  normal                   |   Milestone:  Future Release
Component:  Bundled Theme            |     Version:  6.1
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch 2nd-opinion  |     Focuses:  css
-------------------------------------+-----------------------------
Changes (by sabernhardt):

 * keywords:  needs-patch => needs-patch 2nd-opinion


Comment:

 I reopened this ticket because the issue occurs with Twenty Twenty-One,
 but it also happens with eight other bundled themes and probably many
 themes we do not control.
 - Twenty Twelve
 - Twenty Fourteen
 - Twenty Fifteen
 - Twenty Sixteen (part of "alternative" patch suggestion on #58609)
 - Twenty Seventeen (#60937)
 - Twenty Nineteen (I suggested moving some more style rules to `.wp-block-
 buttons` on ticket:58443 but did not include `font-weight` in the patch
 that was committed)
 - Twenty Twenty (#58030)
 - Twenty Twenty-One (#58991)
 - Twenty Twenty-Four

 This could be worth fixing in the block styles with `inherit` for any
 theme:
 {{{
 .wp-block-buttons[style*="font-weight"] .wp-block-button,
 .wp-block-buttons[style*="font-weight"] .wp-block-button__link {
         font-weight: inherit;
 }
 .wp-block-button[style*="font-weight"] .wp-block-button__link {
         font-weight: inherit;
 }
 }}}

 The
 [https://github.com/WordPress/gutenberg/blob/e1384bbf91696579c40e3fd701c328b8ba4165de/packages
 /block-library/src/button/style.scss#L37 Button block] and
 [https://github.com/WordPress/gutenberg/blob/e1384bbf91696579c40e3fd701c328b8ba4165de/packages
 /block-library/src/buttons/style.scss#L73 Buttons block stylesheets] both
 inherit the `text-decoration` property already.

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


More information about the wp-trac mailing list