Make WordPress Core


Ignore:
Timestamp:
06/13/2024 01:55:46 PM (3 months ago)
Author:
joedolson
Message:

Administration: A11y: Add visible labels in theme UI.

Finish task to replace placeholders used for labels with visible label elements. Add label elements in theme browser and theme installation screen. Change position of search input to match other user interfaces in WordPress.

Also crediting all contributors to ticket #61389, which this also closes.

Props joedolson, rcreators, sabernhardt, balub, rejaulalomkhan, syamraj24, nazmul111, krupajnanda, huzaifaalmesbah, hmbashar, mdnesarmridha, colorful-tones, printsachen1.
Fixes #40331, #61389.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/themes.php

    r58069 r58405  
    233233        'l10n'     => array(
    234234            'addNew'            => __( 'Add New Theme' ),
    235             'search'            => __( 'Search Installed Themes' ),
    236             'searchPlaceholder' => __( 'Search installed themes...' ), // Placeholder (no ellipsis).
     235            'search'            => __( 'Search installed themes' ),
    237236            /* translators: %d: Number of themes. */
    238237            'themesFound'       => __( 'Number of Themes found: %d' ),
     
    253252        <span class="title-count theme-count"><?php echo ! empty( $_GET['search'] ) ? __( '&hellip;' ) : count( $themes ); ?></span>
    254253    </h1>
    255 
    256254    <?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?>
    257255        <a href="<?php echo esc_url( admin_url( 'theme-install.php' ) ); ?>" class="hide-if-no-js page-title-action"><?php echo esc_html__( 'Add New Theme' ); ?></a>
    258256    <?php endif; ?>
    259 
    260     <form class="search-form"></form>
    261 
    262257    <hr class="wp-header-end">
     258    <form class="search-form search-themes"><p class="search-box"></p></form>
     259
    263260<?php
    264261if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.