Make WordPress Core


Ignore:
Timestamp:
01/22/2016 02:25:58 PM (9 years ago)
Author:
afercia
Message:

Accessibility: Remove title attributes from the Menus screen.

Also, adds missing labels and improves the existing ones.
Updates the "custom links" labels and inputs in the Customizer too.
Introduces a generic, reusable, .wp-initial-focus CSS class to be used for
the sole purpose of setting the initial focus.
"Quick Search": uniform the attached events and avoids new AJAX requests to
be triggered when the pressed key doesn't change the searched term.

Fixes #35374.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-nav-menus.php

    r35722 r36379  
    744744                    </button>
    745745                </h4>
    746                 <div class="accordion-section-content">
     746                <div class="accordion-section-content customlinkdiv">
    747747                    <input type="hidden" value="custom" id="custom-menu-item-type" name="menu-item[-1][menu-item-type]" />
    748748                    <p id="menu-item-url-wrap">
    749                         <label class="howto" for="custom-menu-item-url">
    750                             <span><?php _e( 'URL' ); ?></span>
    751                             <input id="custom-menu-item-url" name="menu-item[-1][menu-item-url]" type="text" class="code menu-item-textbox" value="http://">
    752                         </label>
     749                        <label class="howto" for="custom-menu-item-url"><?php _e( 'URL' ); ?></label>
     750                        <input id="custom-menu-item-url" name="menu-item[-1][menu-item-url]" type="text" class="code menu-item-textbox" value="http://">
    753751                    </p>
    754752                    <p id="menu-item-name-wrap">
    755                         <label class="howto" for="custom-menu-item-name">
    756                             <span><?php _e( 'Link Text' ); ?></span>
    757                             <input id="custom-menu-item-name" name="menu-item[-1][menu-item-title]" type="text" class="regular-text menu-item-textbox">
    758                         </label>
     753                        <label class="howto" for="custom-menu-item-name"><?php _e( 'Link Text' ); ?></label>
     754                        <input id="custom-menu-item-name" name="menu-item[-1][menu-item-title]" type="text" class="regular-text menu-item-textbox">
    759755                    </p>
    760756                    <p class="button-controls">
Note: See TracChangeset for help on using the changeset viewer.