Bundled themes: add documentation for new onResizeARIA function.

See #31527. Props davidakennedy, lancewillett.

git-svn-id: https://develop.svn.wordpress.org/trunk@31814 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Lance Willett 2015-03-18 18:30:19 +00:00
parent 31bded083b
commit 7476ac6d05
3 changed files with 18 additions and 3 deletions

View File

@ -60,7 +60,12 @@
} );
} )();
// Add or remove ARIA attributes.
/**
* @summary Add or remove ARIA attributes.
* Uses jQuery's width() function to determine the size of the window and add
* the default ARIA attributes for the menu toggle if it's visible.
* @since Twenty Fifteen 1.1
*/
function onResizeARIA() {
if ( 955 > $window.width() ) {
button.attr( 'aria-expanded', 'false' );

View File

@ -121,7 +121,12 @@
} );
} );
// Add or remove ARIA attributes.
/**
* @summary Add or remove ARIA attributes.
* Uses jQuery's width() function to determine the size of the window and add
* the default ARIA attributes for the menu toggle if it's visible.
* @since Twenty Fourteen 1.4
*/
function onResizeARIA() {
if ( 781 > _window.width() ) {
button.attr( 'aria-expanded', 'false' );

View File

@ -74,7 +74,12 @@
} );
} )();
// Add or remove ARIA attributes.
/**
* @summary Add or remove ARIA attributes.
* Uses jQuery's width() function to determine the size of the window and add
* the default ARIA attributes for the menu toggle if it's visible.
* @since Twenty Thirteen 1.5
*/
function onResizeARIA() {
if ( 643 > _window.width() ) {
button.attr( 'aria-expanded', 'false' );