|
@@ -5,7 +5,7 @@
|
|
* navigation support for dropdown menus.
|
|
* navigation support for dropdown menus.
|
|
*/
|
|
*/
|
|
|
|
|
|
-/* global screenReaderText */
|
|
|
|
|
|
+/* global altoFocusScreenReaderText */
|
|
( function( $ ) {
|
|
( function( $ ) {
|
|
|
|
|
|
var body,
|
|
var body,
|
|
@@ -30,7 +30,7 @@
|
|
'aria-expanded': false
|
|
'aria-expanded': false
|
|
} ).append( $( '<span />', {
|
|
} ).append( $( '<span />', {
|
|
'class': 'screen-reader-text',
|
|
'class': 'screen-reader-text',
|
|
- text: screenReaderText.expand
|
|
|
|
|
|
+ text: altoFocusScreenReaderText.expand
|
|
})).append( '<span class="meta-nav" aria-hidden="true"><svg class="dropdown-icon dropdown-icon-open" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><polyline class="line" points="2.5,3.8 5,6.2 7.5,3.8 "/></svg><svg class="dropdown-icon dropdown-icon-close" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><line class="line" x1="2.5" y1="7.5" x2="7.5" y2="2.5"/><line class="line" x1="2.5" y1="2.5" x2="7.5" y2="7.5"/></svg></span>' );
|
|
})).append( '<span class="meta-nav" aria-hidden="true"><svg class="dropdown-icon dropdown-icon-open" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><polyline class="line" points="2.5,3.8 5,6.2 7.5,3.8 "/></svg><svg class="dropdown-icon dropdown-icon-close" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><line class="line" x1="2.5" y1="7.5" x2="7.5" y2="2.5"/><line class="line" x1="2.5" y1="2.5" x2="7.5" y2="7.5"/></svg></span>' );
|
|
|
|
|
|
container.find( '.menu-item-has-children > a' ).after( dropdownToggle );
|
|
container.find( '.menu-item-has-children > a' ).after( dropdownToggle );
|
|
@@ -65,7 +65,7 @@
|
|
// jscs:enable
|
|
// jscs:enable
|
|
|
|
|
|
// Update screen reader text
|
|
// Update screen reader text
|
|
- screenReaderSpan.text( screenReaderSpan.text() === screenReaderText.expand ? screenReaderText.collapse : screenReaderText.expand );
|
|
|
|
|
|
+ screenReaderSpan.text( altoFocusScreenReaderText.text() === altoFocusScreenReaderText.expand ? altoFocusScreenReaderText.collapse : altoFocusScreenReaderText.expand );
|
|
|
|
|
|
} );
|
|
} );
|
|
|
|
|