[wp-trac] [WordPress Trac] #47146: Live search does not announce results to assistive technologies

WordPress Trac noreply at wordpress.org
Wed Jun 26 16:39:38 UTC 2019


#47146: Live search does not announce results to assistive technologies
-------------------------------------+-------------------------------------
 Reporter:  anevins                  |       Owner:  afercia
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  5.3
Component:  Media                    |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-screenshots          |     Focuses:  accessibility,
  wpcampus-report has-patch          |  javascript
-------------------------------------+-------------------------------------

Comment (by afercia):

 In [attachment:"47146.2.diff"]:
 - some cleaning
 - trigger the search after trimming spaces and only
 [https://core.trac.wordpress.org/ticket/37233#comment:21 when at least 2
 ASCII characters have been typed]

 During WCEU Berlin contributor day I had the pleasure to collaborate with
 @aduth and @loreleiaurora. Looking into the media backbone.js models and
 the way attachments are fetched / cached, the approach in this patch
 seemed good enough.

 For non-cached queries, there's a minor issue: the spoken message is
 triggered twice. This appears to happen because of the specific
 implementation to retrieve attachments in the models. Even after a good
 amount of time was spent trying to fully understand this part of (mostly
 undocumented) code, we haven't been able to avoid the double triggering.
 It doesn't affect the way screen readers announce the `speak()` message
 though.

 Any improvement and feedback are welcome.

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


More information about the wp-trac mailing list