Skip to content

Administration: Update notices to align with the WordPress Design System - #16129

Open
jasmussen wants to merge 1 commit into
WordPress:trunkfrom
jasmussen:update/restyle-admin-notices-to-wpds
Open

jasmussen wants to merge 1 commit into
WordPress:trunkfrom
jasmussen:update/restyle-admin-notices-to-wpds

Conversation

@jasmussen

Copy link
Copy Markdown

Trac ticket: https://core.trac.wordpress.org/ticket/64548

The above is closed, but with this PR I'm proposing reopening it. If you prefer I create a different trac ticket, happy to, just let me know.

This patch updates the Notices to look like those that appear inside the site editor, and can be seen in this story. Here are some screenshots:

2026-11-20 11 34 21 localhost 170ff3b87359 2026-11-20 11 36 58 localhost 6c0ea53cbd01

I've aspired to keep the CSS changes minimal, as it's a visual change, and I've tested a bunch of the major plugins in it, including Woo which looks as it should:

2026-11-20 11 33 04 localhost 5cbfb14dbc87

It is worth noting that since this change adds a corner radius—same corner radius used for widgets—some plugins will have rounding:

2026-11-20 11 39 35 localhost a84c05cace47 2026-11-20 11 40 01 localhost 324e33c68823

There's also a use of the Notice inside the customizer, which as a result gets a 0px radius to avoid this:

2026-11-20 11 47 54 localhost b35a4db85830

Why

The motivation is the same as is outlined on the trac ticket: to unify the appearance of the same elements across WordPress. In this case, Notices.

The notice itself uses a full border and toned colour to indicate the type of notice. Not part of this patch, however, the addition of an icon for the type of notice—that's a larger undertaking due to how Notices work in WordPress, but still possibly one to undertake, as colour alone is insufficient to indicate notice type for people of low vision or colour blindness. In that sense, the change is largely stylistic, but the addition of a border all around nevertheless does increase contrast between the notice itself and the background canvas, especially for some colours, e.g. success notices can be hard to see the boundaries of at present:

image

Thank you for your time.

Use of AI Tools

Claude Opus 5.

@github-actions

Copy link
Copy Markdown

Test using WordPress Playground

The changes in this pull request can previewed and tested using a WordPress Playground instance.

WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

Some things to be aware of

  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant