Skip to content

Commit 900a959

Browse files
doc: improve comment description
1 parent 6a15f90 commit 900a959

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/resources/admin-notices.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@
6868
const location = $notice.data(locationAttribute);
6969

7070
if (location === 'below_header') {
71-
// Place after the page action element (e.g., "Add Plugin" on Plugins page) if it exists, otherwise after <h1>.
71+
// Place notice after the page action element (e.g., "Add Plugin" on the Plugins page) if it exists;
72+
// otherwise, insert it after the <h1>. On some pages, placing the notice directly after the <h1>
73+
// can cause it to appear between the header and its action button, leading to layout issues.
7274
const $pageTitleAction = $('a.page-title-action');
7375
if ($pageTitleAction.length) {
7476
$notice.insertAfter($pageTitleAction);

0 commit comments

Comments
 (0)