[wp-trac] [WordPress Trac] #52260: block button contained within cover - font colors

WordPress Trac noreply at wordpress.org
Fri Jan 8 17:35:48 UTC 2021


#52260: block button contained within cover - font colors
---------------------------+-----------------------------
 Reporter:  megphillips91  |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Editor         |    Version:  5.6
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 I understand that the cover block is assigning a color: #fff to the
 content contained within for accessibility. However, that is assuming many
 things that are not in fact good to assume.

 - **Light colored backgrounds:** For instance, if in the theme I add
 #eeeeee as a standard theme color and then assign it to the background
 color of a cover block the block is assigning a color which creates worse
 accessibility. I consider this to be a common use case as many sites use
 white background and light grey backgrounds to signal a change in section.

 - **Buttons a:visited color:** Furthermore, if I then create a button
 within that cover block there is no way for me to effectively control the
 color of the a:visited color based on the background color of the button
 itself.

 It is a very common design pattern and widely accepted convention to
 create higher priority calls to action with dark or bright backgrounds and
 lower priority calls to action with lighter or no background. Therein, in
 this scenario I cannot correct the a:visited color for all buttons within
 my theme code and find a color that is accessible in both scenarios.

 I propose to remove the color selection within the cover block itself and
 allow the user to determine the colors directly using the block settings
 and the theme developer the brevity to determine the defaults.

 Thank you for your consideration.

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


More information about the wp-trac mailing list