Make WordPress Core


Ignore:
Timestamp:
11/16/2016 11:25:28 PM (8 years ago)
Author:
joemcgill
Message:

Themes: Improve a11y and extendability of custom video headers.

This adds play/pause controls to video headers, along with voice
assistance, using wp.a11y.speak, to make custom video headers more
accessible. To make styling the play/pause button easier for themes,
CSS has been omitted from the default implementation.

This also includes a refactor of the wp.customHeader code to introduce
a BaseHandler class, which can be extended by plugins and themes to modify
or enhance the default video handlers.

Props davidakennedy, afercia, bradyvercher, joemcgill, adamsilverstein, rianrietveld.
Fixes #38678.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme.php

    r39261 r39272  
    13821382        'minWidth'  => 900,
    13831383        'minHeight' => 500,
     1384        'l10n'      => array(
     1385            'pause'      => __( 'Pause' ),
     1386            'play'       => __( 'Play' ),
     1387            'pauseSpeak' => __( 'Video is paused.'),
     1388            'playSpeak'  => __( 'Video is playing.'),
     1389        ),
    13841390    );
    13851391
Note: See TracChangeset for help on using the changeset viewer.