[wp-trac] [WordPress Trac] #59922: Twenty Nineteen is using CSS selectors that are no longer used in the editor

WordPress Trac noreply at wordpress.org
Tue Feb 20 08:09:00 UTC 2024


#59922: Twenty Nineteen is using CSS selectors that are no longer used in the
editor
-------------------------------------+-----------------------------
 Reporter:  poena                    |       Owner:  SergeyBiryukov
     Type:  defect (bug)             |      Status:  reopened
 Priority:  normal                   |   Milestone:  6.5
Component:  Bundled Theme            |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  css
-------------------------------------+-----------------------------

Comment (by poena):

 I removed the editor styles for hover, active and focus for the buttons.
 I found it too confusing that the block changed color when you clicked on
 it to add or edit the button text.
 I kept one exception: the button block with the outline style variation,
 before WordPress 5.8. Because it was using the default color when it was
 selected.

 For the front, I set the button hover and focus color to
 {{{$color__background-button-hover}}}, to match the other buttons in the
 theme. This also increases the color contrast so that the buttons are more
 accessible when the custom color option is enabled in the Customizer.


 I also added editor styles for the search block, because the editor and
 front did not match.
 I built the CSS files for this update.

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


More information about the wp-trac mailing list