Skip to content

Commit 869800f

Browse files
committed
General: Ensure admin notices are properly displayed on Site Health layout.
This changeset adds some CSS tweaks to ensure admin notices like the "Automated update failed" notice don't break the layout of the Site Health and Privacy Settings screens. Props johnjamesjacoby, costdev, Clorith, audrasjb, SergeyBiryukov, joedolson. Fixes #54624. git-svn-id: https://develop.svn.wordpress.org/trunk@54220 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 8f40409 commit 869800f

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/wp-admin/css/edit.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,17 @@ form#tags-filter {
725725
padding-left: 0;
726726
}
727727

728+
/* Better position for the WordPress admin notices. */
729+
.privacy-settings .notice,
730+
.site-health .notice {
731+
margin: 25px 20px 15px 22px;
732+
}
733+
734+
.privacy-settings .notice ~ .notice,
735+
.site-health .notice ~ .notice {
736+
margin-top: 5px;
737+
}
738+
728739
/* Emulates .wrap h1 styling */
729740
.privacy-settings-header h1,
730741
.health-check-header h1 {

src/wp-admin/css/site-health.css

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -280,17 +280,6 @@ are styled in the Privacy section of edit.css */
280280
padding-left: 20px;
281281
}
282282

283-
284-
/* Better position for the WordPress admin notices and update nag. */
285-
.site-health .notice {
286-
margin: 5px 20px 15px 22px;
287-
}
288-
289-
.site-health .update-nag {
290-
margin-bottom: 20px;
291-
margin-left: 22px;
292-
}
293-
294283
.health-check-wp-paths-sizes.spinner {
295284
visibility: visible;
296285
float: none;

0 commit comments

Comments
 (0)