[wp-trac] [WordPress Trac] #35210: Add notification area to Customizer

WordPress Trac noreply at wordpress.org
Wed Nov 2 20:12:13 UTC 2016


#35210: Add notification area to Customizer
-------------------------------------------------+-------------------------
 Reporter:  westonruter                          |       Owner:  delawski
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
Component:  Customize                            |  Release
 Severity:  normal                               |     Version:
 Keywords:  needs-patch ui-feedback ux-feedback  |  Resolution:
                                                 |     Focuses:  ui,
                                                 |  javascript
-------------------------------------------------+-------------------------

Comment (by delawski):

 I've attached
 [https://core.trac.wordpress.org/attachment/ticket/35210/35210_4.diff a
 patch to the ticket] which implements global notifications area. You can
 see the changes on the GitHub too:

 https://github.com/xwp/wordpress-develop/pull/180/files

 If you'd like to test it out locally, here's the JS snippet you can use in
 your console in order to generate several notifications:

 {{{#!javascript
 _( [ 'none', 'error', 'warning', 'info', 'success' ] ).each( function(
 code ) {
   wp.customize.notifications.add( code, new wp.customize.Notification(
 code, {
     isDismissible: true,
     message: code.toUpperCase() + ': this is sample ' + code + '
 message.',
     type: code,
     code: code
   } ) );
 } );
 }}}

 The patch is reusing templates and styling of control-specific
 notifications and other existing elements in WordPress.

 @westonruter and @celloexpressions - can you have a look maybe after 4.7
 is released?

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


More information about the wp-trac mailing list