Changeset 44793
- Timestamp:
- 03/04/2019 10:45:24 PM (6 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-admin-bar.php
r44639 r44793 502 502 } 503 503 504 $is_parent = ! empty( $node->children ); 505 $has_link = ! empty( $node->href ); 504 $is_parent = ! empty( $node->children ); 505 $has_link = ! empty( $node->href ); 506 $is_root_top_item = 'root-default' === $node->parent; 507 $is_top_secondary_item = 'top-secondary' === $node->parent; 506 508 507 509 // Allow only numeric values, then casted to integers, and allow a tabindex value of `0` for a11y. … … 510 512 511 513 $menuclass = ''; 514 $arrow = ''; 512 515 513 516 if ( $is_parent ) { … … 518 521 if ( ! empty( $node->meta['class'] ) ) { 519 522 $menuclass .= $node->meta['class']; 523 } 524 525 // Print the arrow icon for the menu children with children. 526 if ( ! $is_root_top_item && ! $is_top_secondary_item && $is_parent ) { 527 $arrow = '<span class="wp-admin-bar-arrow" aria-hidden="true"></span>'; 520 528 } 521 529 … … 543 551 } 544 552 545 echo ">{$ node->title}";553 echo ">{$arrow}{$node->title}"; 546 554 547 555 if ( $has_link ) { -
trunk/src/wp-includes/css/admin-bar.css
r44791 r44793 232 232 #wpadminbar > #wp-toolbar > #wp-admin-bar-root-default .ab-icon, 233 233 #wpadminbar .ab-icon, 234 #wpadminbar .ab-item:before { 234 #wpadminbar .ab-item:before, 235 .wp-admin-bar-arrow { 235 236 position: relative; 236 237 float: left; … … 309 310 } 310 311 311 #wpadminbar .menupop .menupop > .ab-item :before,312 #wpadminbar .menupop .menupop > .ab-item .wp-admin-bar-arrow:before, 312 313 #wpadminbar .ab-top-secondary .menupop .menupop > .ab-item:before { 313 314 position: absolute; … … 323 324 } 324 325 325 #wpadminbar .menupop .menupop > .ab-item :before {326 #wpadminbar .menupop .menupop > .ab-item .wp-admin-bar-arrow:before { 326 327 top: 1px; 327 right: 4px; 328 right: 10px; 329 padding: 4px 0; 328 330 content: "\f139"; 329 331 color: inherit; … … 335 337 } 336 338 337 #wpadminbar .ab-top-secondary .menupop .menupop > .ab-item :before {339 #wpadminbar .ab-top-secondary .menupop .menupop > .ab-item .wp-admin-bar-arrow:before { 338 340 top: 1px; 339 341 left: 6px;
Note: See TracChangeset
for help on using the changeset viewer.