[wp-trac] [WordPress Trac] #22058: Improve custom background properties UI

WordPress Trac noreply at wordpress.org
Sun Oct 23 19:07:09 UTC 2016


#22058: Improve custom background properties UI
-------------------------------------+-------------------------------------
 Reporter:  grapplerulrich           |       Owner:  cdog
     Type:  enhancement              |      Status:  assigned
 Priority:  normal                   |   Milestone:  4.7
Component:  Customize                |     Version:  3.4.2
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |     Focuses:  ui, accessibility,
  has-screenshots                    |  administration
-------------------------------------+-------------------------------------

Comment (by cdog):

 Final patch: [attachment:22058.6.diff].

 @celloexpressions This should be ready. Please double-check the visibility
 of controls and default values for each preset (and let me know if there
 is anything to be updated). Thanks!

 {{{
 var visibility = { // position, size, repeat, attachment
         'default': [ false, false, false, false ],
         'fill': [ true, false, false, false ],
         'fit': [ true, false, true, false ],
         'repeat': [ true, false, false, true ],
         'custom': [ true, true, true, true ],
 };
 }}}

 {{{
 var values = { // position_x, position_y, size, repeat, attachment
         'default': defaultValues,
         'fill': [ 'left', 'top', 'cover', 'no-repeat', 'fixed' ],
         'fit': [ 'left', 'top', 'contain', 'no-repeat', 'fixed' ],
         'repeat': [ 'left', 'top', 'auto', 'repeat', 'scroll' ],
 };
 }}}

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


More information about the wp-trac mailing list