WordPress.org

Make WordPress Core

Ticket #32495: 32495.diff

File 32495.diff, 1.3 KB (added by afercia, 5 years ago)
  • src/wp-includes/class-wp-admin-bar.php

     
    478478                $has_link  = ! empty( $node->href );
    479479
    480480                $tabindex = isset( $node->meta['tabindex'] ) ? (int) $node->meta['tabindex'] : '';
    481                 $aria_attributes = $tabindex ? 'tabindex="' . $tabindex . '"' : '';
     481                // Allow only tabindex values of 0 and -1.
     482                $aria_attributes = ( -1 === $tabindex || 0 === $tabindex ) ? 'tabindex="' . $tabindex . '"' : '';
    482483
    483484                $menuclass = '';
    484485
  • src/wp-includes/css/admin-bar.css

     
    286286#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a,
    287287#wpadminbar .quicklinks .menupop.hover ul li a:hover,
    288288#wpadminbar .quicklinks .menupop.hover ul li a:focus,
     289#wpadminbar .quicklinks .menupop.hover ul li div[tabindex]:hover,
     290#wpadminbar .quicklinks .menupop.hover ul li div[tabindex]:focus,
    289291#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover,
    290292#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,
    291293#wpadminbar li:hover .ab-icon:before,