Make WordPress Core

Ticket #37513: 37513.diff

File 37513.diff, 1.9 KB (added by afercia, 8 years ago)
  • src/wp-includes/class-wp-admin-bar.php

     
    481481                $tabindex = ( isset( $node->meta['tabindex'] ) && is_numeric( $node->meta['tabindex'] ) ) ? (int) $node->meta['tabindex'] : '';
    482482                $aria_attributes = ( '' !== $tabindex ) ? ' tabindex="' . $tabindex . '"' : '';
    483483
    484                 $menuclass = '';
     484                $menuclass = $arrow_right = '';
    485485
    486486                if ( $is_parent ) {
    487487                        $menuclass = 'menupop ';
    488488                        $aria_attributes .= ' aria-haspopup="true"';
     489                        $arrow_right = '<span class="wp-admin-bar-arrow-right" aria-hidden="true"></span>';
    489490                }
    490491
    491492                if ( ! empty( $node->meta['class'] ) )
     
    532533                                ?>><?php
    533534                        endif;
    534535
     536                        echo $arrow_right;
     537
    535538                        echo $node->title;
    536539
    537540                        if ( $has_link ) :
  • src/wp-includes/css/admin-bar.css

     
    234234
    235235#wpadminbar > #wp-toolbar > #wp-admin-bar-root-default .ab-icon,
    236236#wpadminbar .ab-icon,
    237 #wpadminbar .ab-item:before {
     237#wpadminbar .ab-item:before,
     238.wp-admin-bar-arrow-right {
    238239        position: relative;
    239240        float: left;
    240241        font: normal 20px/1 dashicons;
     
    312313        color: #00b9eb;
    313314}
    314315
    315 #wpadminbar .menupop .menupop > .ab-item:before,
     316#wpadminbar .menupop .menupop > .ab-item .wp-admin-bar-arrow-right:before,
    316317#wpadminbar .ab-top-secondary .menupop .menupop > .ab-item:before {
    317318        position: absolute;
    318319        font: normal 17px/1 dashicons;
     
    326327        padding-right: 2em;
    327328}
    328329
    329 #wpadminbar .menupop .menupop > .ab-item:before {
     330#wpadminbar .menupop .menupop > .ab-item .wp-admin-bar-arrow-right:before {
    330331        top: 1px;
    331         right: 4px;
     332        right: 10px;
     333        padding: 4px 0;
    332334        content: "\f139";
    333335        color: inherit;
    334336}