[wp-trac] [WordPress Trac] #31006: Use classes instead of setting and directly animating background colors in JS

WordPress Trac noreply at wordpress.org
Wed Jan 14 05:32:11 UTC 2015


#31006: Use classes instead of setting and directly animating background colors in
JS
--------------------------------------------+-----------------
 Reporter:  helen                           |      Owner:
     Type:  enhancement                     |     Status:  new
 Priority:  normal                          |  Milestone:  4.2
Component:  General                         |    Version:
 Severity:  normal                          |   Keywords:
  Focuses:  ui, javascript, administration  |
--------------------------------------------+-----------------
 Directly setting hex values in JS doesn't tell us much about what the
 color is being used for, whereas setting a class name is much more
 semantic. Also, jQuery UI can animate color changes when using
 addClass/removeClass/toggleClass/switchClass - no need to use .animate()
 directly and do things like getting background colors of surrounding
 elements.

 This is very tightly related to #25060 and blocks it. I am working on it.

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


More information about the wp-trac mailing list