[wp-trac] [WordPress Trac] #38342: Quick Draft: Leverage REST API endpoints

WordPress Trac noreply at wordpress.org
Fri Nov 25 16:33:21 UTC 2016


#38342: Quick Draft: Leverage REST API endpoints
-------------------------------------+-------------------------------------
 Reporter:  adamsilverstein          |       Owner:  joehoyle
     Type:  enhancement              |      Status:  assigned
 Priority:  normal                   |   Milestone:  Future Release
Component:  Administration           |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch 4.8-early      |     Focuses:  accessibility,
  needs-unit-tests needs-refresh     |  javascript, rest-api
-------------------------------------+-------------------------------------

Comment (by afercia):

 @adamsilverstein thanks :)
 > Regarding using `assertive` I was uncertain if that was appropriate for
 both errors and success messages, or is it only for failures (ie when
 should we tell the screen reader to be assertive)?

 I'd say `polite/assertive` are not specifically tied to semantics (normal
 messages vs errors/warnings). It's just about timings. If the screen
 reader is already reading out something, e.g. a long sentence, `polite`
 won't interrupt it. Instead, `assertive` interrupts immediately. Should be
 used with care to don't stop users from completing their current task. In
 this case, for both confirmation and error, the task is completed so my
 thought was to give users an immediate feedback.

 Also, the politeness levels are just "suggestions" and screen readers
 could theoretically choose to ignore them. Quoting the specification:
  Politeness levels are essentially an ordering mechanism for updates and
 serve as a strong suggestion to user agents or assistive technologies. The
 value may be overridden by user agents, assistive technologies, or the
 user. For example, if assistive technologies can determine that a change
 occurred in response to a key press or a mouse click, the assistive
 technologies may present that change immediately even if the value of the
 aria-live attribute states otherwise.

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


More information about the wp-trac mailing list