WordPress.org

Make WordPress Core

Changeset 31497


Ignore:
Timestamp:
02/22/2015 10:14:45 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Themes: Add feedback for screen readers when search results are changed.

props obenland, joedolson.
see #26600.

Location:
trunk/src/wp-admin
Files:
4 edited

Legend:

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

    r31422 r31497  
    11381138
    11391139p.no-themes {
     1140    clear: both;
    11401141    color: #999;
    11411142    font-size: 18px;
    11421143    font-style: normal;
    11431144    margin: 0;
    1144     padding: 0;
     1145    padding: 100px 0 0;
    11451146    text-align: center;
    11461147    display: none;
  • trunk/src/wp-admin/js/theme.js

    r31495 r31497  
    8080        // Render and append
    8181        this.view.render();
    82         this.$el.empty().append( this.view.el ).addClass('rendered');
     82        this.$el.find( '.themes' ).remove();
     83        this.$el.append( this.view.el ).addClass( 'rendered' );
    8384        this.$el.append( '<br class="clear"/>' );
    8485    },
  • trunk/src/wp-admin/theme-install.php

    r31077 r31497  
    167167        </div>
    168168    </div>
    169     <div class="theme-browser content-filterable"></div>
     169    <div class="theme-browser content-filterable" aria-live="polite">
     170        <p class="no-themes"><?php _e( 'No themes found. Try a different search.' ); ?></p>
     171    </div>
    170172    <div class="theme-install-overlay wp-full-overlay expanded"></div>
    171 
    172     <p class="no-themes"><?php _e( 'No themes found. Try a different search.' ); ?></p>
    173173    <span class="spinner"></span>
    174174
  • trunk/src/wp-admin/themes.php

    r30794 r31497  
    199199?>
    200200
    201 <div class="theme-browser">
     201<div class="theme-browser" aria-live="polite">
    202202    <div class="themes">
    203203
     
    251251    <br class="clear" />
    252252    </div>
     253    <p class="no-themes"><?php _e( 'No themes found. Try a different search.' ); ?></p>
    253254</div>
    254255<div class="theme-overlay"></div>
    255 
    256 <p class="no-themes"><?php _e( 'No themes found. Try a different search.' ); ?></p>
    257256
    258257<?php
Note: See TracChangeset for help on using the changeset viewer.