Skip to content

Commit dc4071b

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@61798 602fd350-edb4-49c9-b593-d223f7449a82
1 parent c6c1256 commit dc4071b

2 files changed

Lines changed: 22 additions & 14 deletions

File tree

src/wp-admin/css/dashboard.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,6 @@
141141
position: relative;
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;
148146
line-height: 1.3;
@@ -266,6 +264,10 @@
266264
justify-content: space-between;
267265
}
268266

267+
.welcome-panel-header-wrap {
268+
background-color: #151515;
269+
}
270+
269271
.welcome-panel-header {
270272
box-sizing: border-box;
271273
margin-left: auto;
@@ -286,6 +288,9 @@
286288
gap: 32px;
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

291296
[class*="welcome-panel-icon"] {
@@ -1424,6 +1429,7 @@ a.rsswidget {
14241429
}
14251430

14261431
.welcome-panel .welcome-panel-close::before {
1432+
position: absolute;
14271433
top: 5px;
14281434
left: -35px;
14291435
}

src/wp-admin/includes/dashboard.php

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2075,19 +2075,21 @@ function wp_welcome_panel() {
20752075
$is_block_theme = wp_is_block_theme();
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">
20932095
<div class="welcome-panel-column">

0 commit comments

Comments
 (0)