[wp-trac] [WordPress Trac] #60557: Elements: Fix block instance element styles for links applying to buttons

WordPress Trac noreply at wordpress.org
Fri Feb 16 06:23:19 UTC 2024


#60557: Elements: Fix block instance element styles for links applying to buttons
-----------------------------+-----------------------------
 Reporter:  aaronrobertshaw  |      Owner:  (none)
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Editor           |    Version:  trunk
 Severity:  normal           |   Keywords:  gutenberg-merge
  Focuses:                   |
-----------------------------+-----------------------------
 This ticket tracks the backporting of PHP files for the following
 Gutenberg changes:

 https://github.com/WordPress/gutenberg/pull/59114

 The previous selector used for link styles set on an individual block
 instance simply used the `a` element. This meant it incorrectly was
 applied to buttons as well.

 The linked Gutenberg PR fixes this by updating the selector to match the
 one used in theme.json i.e. `a:where(:not(.wp-element-button))`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60557>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list