-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
General InterfaceParts of the UI which don't fall neatly under other labels.Parts of the UI which don't fall neatly under other labels.Needs Design FeedbackNeeds general design feedback.Needs general design feedback.[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
When editing patterns any notices result in a second scrollbar appearing.
The bug happens because the notices push the editor canvas area off-screen, which triggers a scrollbar.
I'm personally unsure of the right fix. For the normal post editing experience, the editor canvas shrinks when there's a notice, so perhaps the focus mode should do the same?
Step-by-step reproduction instructions
- Edit a pattern (post or site editor)
- Add enough content so that a scrollbar appears
- Run this JavaScript snippet in your browser console:
wp.data.dispatch( 'core/notices' ).createInfoNotice( 'Notice' );Observe two scrollbars
Screenshots, screen recording, code snippet
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Metadata
Metadata
Assignees
Labels
General InterfaceParts of the UI which don't fall neatly under other labels.Parts of the UI which don't fall neatly under other labels.Needs Design FeedbackNeeds general design feedback.Needs general design feedback.[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
