WordPress.org

Make WordPress Core

Ticket #21324: 21324.5.diff

File 21324.5.diff, 4.8 KB (added by lessbloat, 6 years ago)
  • wp-login.php

     
    143143        <script type="text/javascript">
    144144        try{document.getElementById('<?php echo $input_id; ?>').focus();}catch(e){}
    145145        if(typeof wpOnload=='function')wpOnload();
     146        $(document).ready( function() {
     147                // Hides accessibility focus onclick
     148                $(document).on('click.wp-accessibility-blur', 'a', function() {
     149                        $(this).blur();
     150                });
     151        });
    146152        </script>
    147153        <?php endif; ?>
    148154
     
    729735wp_attempt_focus();
    730736<?php } ?>
    731737if(typeof wpOnload=='function')wpOnload();
     738$(document).ready( function() {
     739        // Hides accessibility focus onclick
     740        $(document).on('click.wp-accessibility-blur', 'a', function() {
     741                $(this).blur();
     742        });
     743});
    732744</script>
    733745
    734746<?php
  • wp-admin/js/common.js

     
    369369        $(document).on('click.wp-accessibility-blur', 'a', function() {
    370370                $(this).blur();
    371371        });
     372        $('.inside a, .tagcloud-link').on('click', function(){
     373                $(this).blur();
     374        });
    372375});
    373376
    374377// internal use
  • wp-admin/js/post.js

     
    165165
    166166                // tag cloud
    167167                $('a.tagcloud-link').click(function(){
    168                         tagBox.get( $(this).attr('id') );
    169                         $(this).unbind().click(function(){
    170                                 $(this).siblings('.the-tagcloud').toggle();
    171                                 return false;
    172                         });
     168                        if ($('.the-tagcloud').length == 0)
     169                                tagBox.get( $(this).attr('id') );
     170                        $(this).siblings('.the-tagcloud').toggle();
    173171                        return false;
    174172                });
    175173        }
  • wp-admin/css/colors-fresh.css

     
    381381.button-secondary:hover,
    382382.submit input:hover,
    383383input[type=button]:hover,
    384 input[type=submit]:hover {
     384input[type=submit]:hover,
     385.button:focus,
     386.button-secondary:focus,
     387.submit input:focus,
     388input[type=button]:focus,
     389input[type=submit]:focus {
    385390        color: #000;
    386391        border-color: #666;
     392        background: #f2f2f2;
     393        background-image: -webkit-gradient(linear, left bottom, left top, from(#ededed), to(#fff));
     394        background-image: -webkit-linear-gradient(bottom, #ededed, #fff);
     395        background-image:    -moz-linear-gradient(bottom, #ededed, #fff);
     396        background-image:      -o-linear-gradient(bottom, #ededed, #fff);
     397        background-image: linear-gradient(to top, #ededed, #fff);
    387398}
    388399
    389400.button,
     
    440451button.button-primary:hover,
    441452a.button-primary:hover,
    442453a.button-primary:focus,
     454input.button-primary:focus,
     455button.button-primary:focus,
    443456a.button-primary:active {
    444457        border-color: #13455b;
    445458        color: #eaf2fa;
     459        background: #21759b;
     460        background-image: -webkit-gradient(linear, left bottom, left top, from(#227199), to(#298cba));
     461        background-image: -webkit-linear-gradient(bottom, #227199, #298cba);
     462        background-image:    -moz-linear-gradient(bottom, #227199, #298cba);
     463        background-image:      -o-linear-gradient(bottom, #227199, #298cba);
     464        background-image: linear-gradient(to top, #227199, #298cba);
    446465}
    447466
    448467.button-disabled,
  • wp-admin/css/colors-classic.css

     
    390390.button-secondary:hover,
    391391.submit input:hover,
    392392input[type=button]:hover,
    393 input[type=submit]:hover {
     393input[type=submit]:hover,
     394.button:focus,
     395.button-secondary:focus,
     396.submit input:focus,
     397input[type=button]:focus,
     398input[type=submit]:focus {
    394399        color: #000;
    395400        border-color: #666;
     401        background: #f2f2f2;
     402        background-image: -webkit-gradient(linear, left bottom, left top, from(#ededed), to(#fff));
     403        background-image: -webkit-linear-gradient(bottom, #ededed, #fff);
     404        background-image:    -moz-linear-gradient(bottom, #ededed, #fff);
     405        background-image:      -o-linear-gradient(bottom, #ededed, #fff);
     406        background-image: linear-gradient(to top, #ededed, #fff);
    396407}
    397408
    398409.button,
     
    449460button.button-primary:hover,
    450461a.button-primary:hover,
    451462a.button-primary:focus,
     463input.button-primary:focus,
     464button.button-primary:focus,
    452465a.button-primary:active {
    453466        border-color: #13455b;
    454467        color: #eaf2fa;
     468        background: #21759b;
     469        background-image: -webkit-gradient(linear, left bottom, left top, from(#227199), to(#298cba));
     470        background-image: -webkit-linear-gradient(bottom, #227199, #298cba);
     471        background-image:    -moz-linear-gradient(bottom, #227199, #298cba);
     472        background-image:      -o-linear-gradient(bottom, #227199, #298cba);
     473        background-image: linear-gradient(to top, #227199, #298cba);
    455474}
    456475
    457476.button-disabled,