[wp-trac] [WordPress Trac] #40735: Events widget form should close after successful search

WordPress Trac noreply at wordpress.org
Thu May 18 00:12:42 UTC 2017


#40735: Events widget form should close after successful search
----------------------------+--------------------------------
 Reporter:  iandunn         |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  ui, accessibility
----------------------------+--------------------------------

Comment (by coreymckrill):

 [attachment:40735-form-ux.diff] hides the form whenever the widget is
 rendered and has a valid location. If the render was user-initiated (as
 opposed to when the screen first loads), the toggle button gets focus
 after the render is complete and the form is hidden. This upgrades the
 `wp.a11y.speak` call for `city_updated` to '''assertive''' so that it
 won't get interrupted by the focus change. It also fixes a bug where the
 location was announced as "object" instead of the city name.

 Question: Since the form will always be hidden after a successful search,
 should we do anything with the form focus/content if it is re-opened?
 Right now the focus stays on the toggle button, and the form input still
 contains the previous search value.

 cc: @iandunn @afercia

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


More information about the wp-trac mailing list