[wp-trac] [WordPress Trac] #60614: Twenty Twenty-Two: The button block border does not appear on the editor side.

WordPress Trac noreply at wordpress.org
Thu Mar 14 07:58:39 UTC 2024


#60614: Twenty Twenty-Two: The button block border does not appear on the editor
side.
---------------------------+----------------------
 Reporter:  viralsampat    |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  6.5
Component:  Bundled Theme  |     Version:  trunk
 Severity:  normal         |  Resolution:
 Keywords:  dev-feedback   |     Focuses:  ui, css
---------------------------+----------------------

Comment (by poena):

 And this is the current CSS
 [https://github.com/WordPress/gutenberg/blob/trunk/packages/block-
 library/src/button/style.scss#L112 in the block's style.scss in the
 Gutenberg GitHub repository]:

 {{{
 .wp-block-button:where(.is-style-outline) > .wp-block-button__link:not
 (.has-background),
 .wp-block-button .wp-block-button__link:where(.is-style-outline):not(.has-
 background) {
         background-color: transparent;
         // background-image is required to overwrite a gradient background
         background-image: none;
 }
 }}}

 And [https://core.trac.wordpress.org/browser/branches/6.5/src/wp-
 content/themes/twentytwentytwo/theme.json#L226 the theme.json:]

 {{{
 blocks": {
         "core/button": {
                 "border": {
                         "radius": "0"
                 },
                 "color": {
                         "background": "var(--wp--preset--color--primary)",
                         "text": "var(--wp--preset--color--background)"
                 }
 }}}

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


More information about the wp-trac mailing list