[wp-trac] [WordPress Trac] #38476: Twenty Seventeen: Focused controls may be hidden by the top menu.
WordPress Trac
noreply at wordpress.org
Mon Nov 7 15:44:28 UTC 2016
#38476: Twenty Seventeen: Focused controls may be hidden by the top menu.
-------------------------------------------------+-------------------------
Reporter: afercia | Owner:
Type: defect (bug) | davidakennedy
Priority: normal | Status: assigned
Component: Bundled Theme | Milestone: 4.7
Severity: normal | Version:
Keywords: has-screenshots has-patch needs- | Resolution:
testing dev-feedback needs-refresh | Focuses: ui,
| accessibility
-------------------------------------------------+-------------------------
Comment (by afercia):
@Fencer04 what I see in [attachment:38476.2.patch] is:
{{{
// Fires on document ready
$( document ).ready( function() {
...
if ( $navigation.hasClass( 'site-navigation-fixed' ) ) {
$( '#content a' ).focus( function( e ) {
etc...
}}}
so on DOM ready, the top navigation doesn't have a CSS class `site-
navigation-fixed` yet, thus the `focus` event doesn't get attached.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38476#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list