Make WordPress Core

Ticket #41020: 41020.1.patch

File 41020.1.patch, 1.9 KB (added by shedonist, 5 years ago)

Added target="_blank", associated external icon and screen reader text along with styling so icon is in line.

  • wp-admin/css/dashboard-rtl.css

     
    430430.community-events .event-title {
    431431        font-weight: 600;
    432432        display: block;
     433        line-height: 1.5;
    433434}
    434435
     436.community-events .event-title .dashicons-external {
     437        display: inline-block; /* Display for all users even those not visually impaired */
     438}
     439
    435440.community-events .event-date,
    436441.community-events .event-time {
    437442        display: block;
  • wp-admin/css/dashboard.css

     
    430430.community-events .event-title {
    431431        font-weight: 600;
    432432        display: block;
     433        line-height: 1.5;
    433434}
    434435
     436.community-events .event-title .dashicons-external {
     437        display: inline-block; /* Display for all users even those not visually impaired */
     438}
     439
    435440.community-events .event-date,
    436441.community-events .event-time {
    437442        display: block;
  • wp-admin/includes/dashboard.php

     
    12631263                                <div class="event-info">
    12641264                                        <div class="dashicons event-icon" aria-hidden="true"></div>
    12651265                                        <div class="event-info-inner">
    1266                                                 <a class="event-title" href="{{ event.url }}">{{ event.title }}</a>
     1266                                                <?php
     1267                                                printf(
     1268                                                        '<a class="event-title" href="{{ event.url }}" target="_blank">{{ event.title }} <span class="screen-reader-text">%1$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
     1269                                                        /* translators: accessibility text */
     1270                                                        __( '(opens in a new window)' )
     1271                                                );
     1272                                                ?>
    12671273                                                <span class="event-city">{{ event.location.location }}</span>
    12681274                                        </div>
    12691275                                </div>