Skip to content

Commit 17d91f6

Browse files
committed
Admin: Set info notices to use white background.
The admin reskin changed info notices to a transparent background, matching usage in Gutenberg. But with the gray background in the core admin, these notices didn't show up in an expected manner. Additionally, using a transparent background in a context where the background color is variable is risky for color contrast. Change `.notice-info`, `.notice-info.notice-alt`, and `.login .notice, .login .message` to use white backgrounds. Reverts changes from [61731] to apply styles also to `.message` class. Props mohitbsf, audrasjb, peterwilsoncc, pbiron, fabiankaegy, noruzzaman, joedolson. Fixes #64678. See #64715. git-svn-id: https://develop.svn.wordpress.org/trunk@61737 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 792c4ac commit 17d91f6

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

src/wp-admin/css/common.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1575,11 +1575,11 @@ div.error.notice-alt {
15751575

15761576
.notice-info {
15771577
border-left-color: #3858e9;
1578-
background-color: transparent;
1578+
background-color: #fff;
15791579
}
15801580

15811581
.notice-info.notice-alt {
1582-
background-color: transparent;
1582+
background-color: #fff;
15831583
}
15841584

15851585
#plugin-information-footer .update-now:not(.button-disabled):before {

src/wp-admin/css/login.css

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ p {
4949
margin-top: 0;
5050
margin-left: 0;
5151
margin-bottom: 20px;
52-
background-color: transparent;
52+
background-color: #fff;
5353
word-wrap: break-word;
5454
}
5555

@@ -66,10 +66,6 @@ p {
6666
background-color: #eff9f1;
6767
}
6868

69-
.login .notice {
70-
background-color: #fff;
71-
}
72-
7369
/* Match border color from common.css */
7470
.login .notice-error {
7571
border-left-color: #cc1818;

0 commit comments

Comments
 (0)