Snackbar container block portion of UI while present. #20654
Labels
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Describe the bug
When a snackbar notice appears, such as after saving changes to a post, the container for it spans the width of the editor UI, including the sidebar. This causes an annoyance where any UI elements at the same Y axis as the snackbar are unclickable, making the user think something is broken when in fact there clicks are being intercepted by an invisible container.
To reproduce
Steps to reproduce the behavior:
Expected behavior
Since visually the notice is only on a fraction of the width of the screen, clicking those elements while it's present should be possible.
Screenshots
https://imgur.com/wyrbpzY
Suggested Solution
I'm currently patching it by adding this styling to my theme's block editor stylesheet:
This does the trick, hiding the hitbox of the container while maintaining the hitbox of the actual notice elment.
The text was updated successfully, but these errors were encountered: