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:
parent
31bded083b
commit
7476ac6d05
@ -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' );
|
||||
|
@ -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' );
|
||||
|
@ -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' );
|
||||
|
Loading…
Reference in New Issue
Block a user