-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Admin UI: Reskin notices to align with WordPress Design System #10784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Changes from all commits
e814c54
9a1ccb3
a9bb51c
bff51c5
139105d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -806,14 +806,14 @@ img.emoji { | |||||
| #bulk-titles .ntdelbutton:before, | ||||||
| .notice-dismiss:before { | ||||||
| background: none; | ||||||
| color: #787c82; | ||||||
| color: #1e1e1e; | ||||||
| content: "\f153"; | ||||||
| content: "\f153" / ''; | ||||||
| display: block; | ||||||
| font: normal 16px/20px dashicons; | ||||||
| height: 20px; | ||||||
| font: normal 20px/24px dashicons; | ||||||
| height: 24px; | ||||||
| text-align: center; | ||||||
| width: 20px; | ||||||
| width: 24px; | ||||||
| -webkit-font-smoothing: antialiased; | ||||||
| -moz-osx-font-smoothing: grayscale; | ||||||
| } | ||||||
|
|
@@ -1421,11 +1421,11 @@ th.action-links { | |||||
| div.updated, | ||||||
| div.error { | ||||||
| background: #fff; | ||||||
| border: 1px solid #c3c4c7; | ||||||
| border-left-width: 4px; | ||||||
| box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); | ||||||
| border: none; | ||||||
| border-left: 4px solid #c3c4c7; | ||||||
| box-shadow: none; | ||||||
| margin: 5px 15px 2px; | ||||||
| padding: 1px 12px; | ||||||
| padding: 8px 12px; | ||||||
| } | ||||||
|
|
||||||
| div[class="update-message"] { /* back-compat for pre-4.6 */ | ||||||
|
|
@@ -1438,15 +1438,31 @@ div.updated p, | |||||
| div.error p, | ||||||
| .form-table td .notice p { | ||||||
| margin: 0.5em 0; | ||||||
| padding: 2px; | ||||||
| padding: 0; | ||||||
| font-size: 13px; | ||||||
| line-height: 1.54; | ||||||
| color: #1e1e1e; | ||||||
| } | ||||||
|
|
||||||
| .error a { | ||||||
| .notice a, | ||||||
| .error a, | ||||||
| .updated a { | ||||||
| color: var(--wp-admin-theme-color-darker-10); | ||||||
| text-decoration: underline; | ||||||
|
Comment on lines
+1447
to
1451
|
||||||
| } | ||||||
|
|
||||||
| .updated a { | ||||||
| padding-bottom: 2px; | ||||||
| .notice a:hover, | ||||||
| .error a:hover, | ||||||
| .updated a:hover { | ||||||
| color: var(--wp-admin-theme-color-darker-20); | ||||||
| } | ||||||
|
|
||||||
| .notice a:focus, | ||||||
| .error a:focus, | ||||||
| .updated a:focus { | ||||||
| box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | ||||||
|
||||||
| box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 2px) var(--wp-admin-theme-color, #2271b1); |
Copilot
AI
Feb 11, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changes .notice-dismiss to a fixed 24x24 box with no padding. There is still a later mobile media-query rule in this same file (@media screen and (max-width: 782px)) that adds padding: 13px to .notice-dismiss without overriding width/height/right/top, which will inflate the button and can cause the notice content to overlap the dismiss control. Please update the responsive rule to match the new sizing/positioning approach (or remove the fixed width/height if padding is used).
Copilot
AI
Feb 11, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to notice links, this focus style depends on --wp-admin-border-width-focus / --wp-admin-theme-color which aren’t defined elsewhere in the repo. If they’re missing at runtime, the dismiss button may lose its visible focus treatment. Please add var() fallbacks or use the existing fixed values used previously for the focus ring.
| box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1px) var(--wp-admin-theme-color, #2271b1); |
Uh oh!
There was an error while loading. Please reload this page.