Make WordPress Core

Changeset 61798


Ignore:
Timestamp:
03/03/2026 05:20:09 PM (5 months ago)
Author:
joedolson
Message:

Admin: Reskin - Welcome Panel viewport fixes.

Ensure that the black background covers the entire width of the header on large screens, ensure that the dismiss button appears on small screens.

Props peterwilsoncc, ramonopoly, huzaifaalmesbah, marc4, shailu25, ocean90, krokodok, karinchristen, hubersen, stefanvelthuys, joedolson.
Fixes #64741.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/dashboard.css

    r61785 r61798  
    142142        overflow: auto;
    143143        margin: 16px 0;
    144         background-color: #c3c4c7;
    145         border: 1px solid rgb(0, 0, 0, 0.1);
    146144        border-radius: 8px;
    147145        font-size: 14px;
     
    267265}
    268266
     267.welcome-panel-header-wrap {
     268        background-color: #151515;
     269}
     270
    269271.welcome-panel-header {
    270272        box-sizing: border-box;
     
    287289        align-self: flex-end;
    288290        background: #ffffff;
     291        border: 1px solid #c3c4c7;
     292        border-top: 0;
     293        border-radius: 0 0 8px 8px;
    289294}
    290295
     
    14251430
    14261431        .welcome-panel .welcome-panel-close::before {
     1432                position: absolute;
    14271433                top: 5px;
    14281434                left: -35px;
  • trunk/src/wp-admin/includes/dashboard.php

    r61634 r61798  
    20762076        ?>
    20772077        <div class="welcome-panel-content">
    2078         <div class="welcome-panel-header">
    2079                 <div class="welcome-panel-header-image">
    2080                         <?php echo file_get_contents( dirname( __DIR__ ) . '/images/dashboard-background.svg' ); ?>
     2078        <div class="welcome-panel-header-wrap">
     2079                <div class="welcome-panel-header">
     2080                        <div class="welcome-panel-header-image">
     2081                                <?php echo file_get_contents( dirname( __DIR__ ) . '/images/dashboard-background.svg' ); ?>
     2082                        </div>
     2083                        <h2><?php _e( 'Welcome to WordPress!' ); ?></h2>
     2084                        <p>
     2085                                <a href="<?php echo esc_url( admin_url( 'about.php' ) ); ?>">
     2086                                <?php
     2087                                        /* translators: %s: Current WordPress version. */
     2088                                        printf( __( 'Learn more about the %s version.' ), esc_html( $display_version ) );
     2089                                ?>
     2090                                </a>
     2091                        </p>
    20812092                </div>
    2082                 <h2><?php _e( 'Welcome to WordPress!' ); ?></h2>
    2083                 <p>
    2084                         <a href="<?php echo esc_url( admin_url( 'about.php' ) ); ?>">
    2085                         <?php
    2086                                 /* translators: %s: Current WordPress version. */
    2087                                 printf( __( 'Learn more about the %s version.' ), esc_html( $display_version ) );
    2088                         ?>
    2089                         </a>
    2090                 </p>
    20912093        </div>
    20922094        <div class="welcome-panel-column-container">
Note: See TracChangeset for help on using the changeset viewer.