[wp-trac] [WordPress Trac] #48894: Improve the small user sub window at the right corner on the admin bar a.k.a. the Howdy fly-out

WordPress Trac noreply at wordpress.org
Tue Apr 21 13:58:11 UTC 2020


#48894: Improve the small user sub window at the right corner on the admin bar
a.k.a. the Howdy fly-out
-------------------------------------------------+-------------------------
 Reporter:  ixkaito                              |       Owner:  afercia
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  5.5
Component:  Toolbar                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  needs-design-feedback has-patch      |     Focuses:  ui,
  has-screenshots needs-refresh                  |  accessibility
-------------------------------------------------+-------------------------
Changes (by afercia):

 * keywords:  needs-design-feedback has-patch has-screenshots => needs-
     design-feedback has-patch has-screenshots needs-refresh


Comment:

 Testing [attachment:"48894.diff"]:

 - use Chrome dev tools to test on a mobile device emulation
 - make sure the device type in the Chrome dev tools top bar (at the right
 of "Zoom" level) is set to "mobile"
 - click the Howdy menu
 - the menu doesn't open

 Actually, this part of the patch:


 {{{
 // Toggle hover class on My Account menu.
 adminBarMyAccount.addEventListener( 'click', function( event ) {
         event.preventDefault();
         adminBarMyAccount.classList.toggle( 'hover' );
 } );
 }}}

 toggles the CSS class a second time so the `hover` class is added and
 immediately removed: the menu doesn't open.

 This code should run only on non-touch devices.

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


More information about the wp-trac mailing list