Make WordPress Core

Changeset 29020


Ignore:
Timestamp:
07/08/2014 12:29:47 AM (10 years ago)
Author:
johnbillion
Message:

Focus and blur styling (via JS) for the install screen language selector. Props jorbin. See #28577

Location:
trunk/src
Files:
1 added
5 edited

Legend:

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

    r28983 r29020  
    338338}
    339339
    340 /* TODO:add focus style via JS */
    341340.language-chooser fieldset.focus {
    342341    border-color: #5b9dd9;
     
    356355.language-chooser input:checked + label{
    357356      color:white;
     357      background: #777;
     358}
     359
     360.language-chooser .focus input:checked + label{
    358361      background: #0074A2;
     362}
     363
     364.language-chooser label:hover {
     365      background: #eee;
    359366}
    360367
     
    374381    border: 0;
    375382}
     383
     384}
  • trunk/src/wp-admin/includes/upgrade.php

    r29018 r29020  
    21632163    echo "<fieldset>\n";
    21642164    echo "<legend class='screen-reader-text'>Select a default language</legend>\n";
    2165     echo '<input type="radio" checked="checked" class="screen-reader-input" name="language" id="language_default" value="">';
     2165    echo '<input type="radio" checked="checked" class="screen-reader-input language-chooser-input" name="language" id="language_default" value="">';
    21662166    echo '<label for="language_default">English (United States)</label>';
    21672167    echo "\n";
     
    21762176
    21772177    foreach ( $languages as $language ) {
    2178         echo '<input type="radio" name="language" class="' . esc_attr( $language['language'] ) . ' screen-reader-input" id="language_'. esc_attr( $language['language'] ) .'" value="' . esc_attr( $language['language'] ) . '">';
     2178        echo '<input type="radio" name="language" class="' . esc_attr( $language['language'] ) . ' screen-reader-input language-chooser-input" id="language_'. esc_attr( $language['language'] ) .'" value="' . esc_attr( $language['language'] ) . '">';
    21792179        echo '<label for="language_' . esc_attr( $language['language'] ) . '">' . esc_html( $language['native_name'] ) . "</label>\n";
    21802180    }
  • trunk/src/wp-admin/install.php

    r29018 r29020  
    282282<?php } ?>
    283283<?php wp_print_scripts( 'user-profile' ); ?>
     284<?php wp_print_scripts( 'language-chooser' ); ?>
    284285</body>
    285286</html>
  • trunk/src/wp-admin/setup-config.php

    r29018 r29020  
    320320}
    321321?>
     322<?php wp_print_scripts( 'language-chooser' ); ?>
    322323</body>
    323324</html>
  • trunk/src/wp-includes/script-loader.php

    r28992 r29020  
    346346
    347347    $scripts->add( 'user-profile', "/wp-admin/js/user-profile$suffix.js", array( 'jquery', 'password-strength-meter' ), false, 1 );
     348    $scripts->add( 'language-chooser', "/wp-admin/js/language-chooser$suffix.js", array( 'jquery' ), false, 1 );
    348349
    349350    $scripts->add( 'user-suggest', "/wp-admin/js/user-suggest$suffix.js", array( 'jquery-ui-autocomplete' ), false, 1 );
Note: See TracChangeset for help on using the changeset viewer.