Make WordPress Core

Ticket #63447: 63447.pseudo-element.diff

File 63447.pseudo-element.diff, 2.1 KB (added by sabernhardt, 3 months ago)

proof of concept for pseudo-element within paragraph

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

     
    596596        margin-bottom: 0;
    597597        padding: 12px;
    598598        border-top: 1px solid #f0f0f1;
    599         color: #dcdcde;
    600599}
    601600
     601.community-events-footer a {
     602        line-height: 1.5;
     603        padding: 0;
     604}
     605
     606.community-events-footer .events-footer-link {
     607        display: inline-block;
     608}
     609
     610.community-events-footer .events-footer-link:not(:last-child)::after {
     611        content: "";
     612        display: inline-block;
     613        width: 1px;
     614        height: 1em;
     615        border-left: 1px solid #dcdcde;
     616        margin-left: 1px;
     617        position: relative;
     618        top: 2px;
     619}
     620
    602621/* Safari 10 + VoiceOver specific: without this, the hidden text gets read out before the link. */
    603622.community-events-footer .screen-reader-text {
    604623        height: inherit;
  • src/wp-admin/includes/dashboard.php

     
    13051305        </div>
    13061306
    13071307        <p class="community-events-footer">
     1308                <span class="events-footer-link">
    13081309                <?php
    13091310                        printf(
    13101311                                '<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text"> %3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
     
    13141315                                __( '(opens in a new tab)' )
    13151316                        );
    13161317                ?>
     1318                </span>
    13171319
    1318                 |
    1319 
     1320                <span class="events-footer-link">
    13201321                <?php
    13211322                        printf(
    13221323                                '<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text"> %3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
     
    13261327                                __( '(opens in a new tab)' )
    13271328                        );
    13281329                ?>
     1330                </span>
    13291331
    1330                 |
    1331 
     1332                <span class="events-footer-link">
    13321333                <?php
    13331334                        printf(
    13341335                                '<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text"> %3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
     
    13391340                                __( '(opens in a new tab)' )
    13401341                        );
    13411342                ?>
     1343                </span>
    13421344        </p>
    13431345
    13441346        <?php