Overflow-x: Hidden on Body element breaks block editor toolbar positioning #29356
Labels
General Interface
Parts of the UI which don't fall neatly under other labels.
Needs Testing
Needs further testing to be confirmed.
I've noticed an issue with a specific line of code and how it affects the positioning of the block editor toolbar on the Wordpress back-end.
This is the code:
The issue I'm noticing is that when I select a Block to edit, the toolbar that normally appears fixed above the block is not visible and is instead further up the page. If you scroll upwards to see it, you'll notice that it's position is dynamically changing and scrolling downwards on the page, changing its "top" absolute positioning. See here:
https://www.loom.com/share/6131f075e8864ec6a85e594ecf372938
I'm using the Advanced Custom Fields Pro plugin and including the front-end stylesheet on the page previews within the blocks. When debugging, disabling the the plugins does not fix this. Only removing the above code does, which confirms that loading in the front-end styling with this code is the issue. Not sure how it could be affecting the vertical positioning of this specific element, since all it's doing is removing the ability for the viewport to horizontally scroll, but that seems to be the problem.
The text was updated successfully, but these errors were encountered: