WordPress.org

Make WordPress Core

Changeset 37160


Ignore:
Timestamp:
04/05/2016 10:23:23 PM (3 years ago)
Author:
afercia
Message:

Accessibility: improvements for the Editor wpLink modal form fields.

Adds aria-describedby attributes to the modal form fields after it
was partly restored in [37154].

Fixes #33301.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-editor.php

    r37154 r37160  
    14131413        <div id="link-selector">
    14141414            <div id="link-options">
    1415                 <p class="howto"><?php _e( 'Enter the destination URL' ); ?></p>
     1415                <p class="howto" id="wplink-enter-url"><?php _e( 'Enter the destination URL' ); ?></p>
    14161416                <div>
    14171417                    <label><span><?php _e( 'URL' ); ?></span>
    1418                     <input id="wp-link-url" type="text" /></label>
     1418                    <input id="wp-link-url" type="text" aria-describedby="wplink-enter-url" /></label>
    14191419                </div>
    14201420                <div class="wp-link-text-field">
     
    14271427                </div>
    14281428            </div>
    1429             <p class="howto"><?php _e( 'Or link to existing content' ); ?></p>
     1429            <p class="howto" id="wplink-link-existing-content"><?php _e( 'Or link to existing content' ); ?></p>
    14301430            <div id="search-panel">
    14311431                <div class="link-search-wrapper">
    14321432                    <label>
    14331433                        <span class="search-label"><?php _e( 'Search' ); ?></span>
    1434                         <input type="search" id="wp-link-search" class="link-search-field" autocomplete="off" />
     1434                        <input type="search" id="wp-link-search" class="link-search-field" autocomplete="off" aria-describedby="wplink-link-existing-content" />
    14351435                        <span class="spinner"></span>
    14361436                    </label>
Note: See TracChangeset for help on using the changeset viewer.