Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Editor: Separate editor notices by border instead of margin #18871
This pull request seeks to update the styling of editor notices, to use a border instead of margins to distinguish multiple stacked notices. As noted in #18762, this should help improve appearance when shown atop a themed editor background color. It also occupies less vertical space, in case there are many notices present.
[ 'info', 'warning', 'error', 'success' ].forEach( ( status ) => wp.data.dispatch( 'core/notices' ).createNotice( status, status ) )
The underlying problem still exists for a single notice though, seen in the white gap between the last notice and the top of the editor of the "Before" screenshot. This should make everything seamless now.