Closed DaisyOlsen closed 3 years ago
@DaisyOlsen: How exactly do you trigger that notice? I installed WooCommerce but wasn't able to see it.
@noisysocks I just recreated the scenario and I guess I left a step out. - There has to be an admin notice loading on the screen. I was able to get one to display by installing and activating WooCommerce, skipping setup and then activating Facebook under marketing. I'm sure there are other plugins that would add a notice with fewer steps, but I don't have any examples at hand.
Basically, it seems that some pretty aggressive positioning is used in the styling, causing things to stack up. I didn't dig far enough to see if there was an easy solution.
It looks like Facebook for WooCommerce plugin used inline style to show notices. It overrides widget screen styles to hide notices.
I don't think we should fix this issue on our side since the widget editor screen does not cause it.
Notice added using default method are hidden and don't overlap with the header. Example:
add_action( 'admin_notices', function() {
?>
<div class="notice notice-success is-dismissible">
<p><?php _e( 'Example notice...' ); ?></p>
</div>
<?php
} );
Describe the bug When a nag or notice is present on the Widgets Screen the page content overlaps the notice.
To reproduce Steps to reproduce the behavior:
Expected behavior Page content should push down below any on-screen notices
Screenshots
Editor version (please complete the following information):