Skip to content

Commit

Permalink
[Edit Widgets] Only suppress admin notices when JS enabled. (#55403)
Browse files Browse the repository at this point in the history
Only suppresses the display of notices on the widget block editor screen if JavaScript is available.
  • Loading branch information
peterwilsoncc authored Oct 17, 2023
1 parent 017d1ad commit 3ba5852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/edit-widgets/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ body.js.widgets-php {

// Don't display admin notices on the Widgets screen.
// Needs !important because plugins may add inline styles to notices.
.widgets-php .notice {
.js .widgets-php .notice {
display: none !important;
}

Expand Down

0 comments on commit 3ba5852

Please sign in to comment.