-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix DFM ui toggling bugs #59061
Fix DFM ui toggling bugs #59061
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +37 B (0%) Total Size: 1.71 MB
ℹ️ View Unchanged
|
Flaky tests detected in 9dcdf4d. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7915591901
|
I think this is the way to go, we should keep the flags independent between each other. There's a unit test failure, is that an intermittent failure? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worked well in my testing
Hmm, seems I need to update a test with some mocking |
…in site editor if DFM is on, don't render post editor inspector if DFM is on
78fda85
to
9dcdf4d
Compare
* don't open post editor inspector if DFM is on, hide list view toggle in site editor if DFM is on, don't render post editor inspector if DFM is on * udpdate tests with the new call for dfm pref and add two tests for when dfm is on Co-authored-by: draganescu <andraganescu@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: scruffian <scruffian@git.wordpress.org>
I just cherry-picked this PR to the more/backports-for-beta3 branch to get it included in the next release: 81115e7 |
* don't open post editor inspector if DFM is on, hide list view toggle in site editor if DFM is on, don't render post editor inspector if DFM is on * udpdate tests with the new call for dfm pref and add two tests for when dfm is on Co-authored-by: draganescu <andraganescu@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: scruffian <scruffian@git.wordpress.org>
Note that as part of curating the Gutenberg 17.8 changelog, I added the label [Feature] Distraction Free to this PR to better categorize it. Please let me know if there is a different label that would be a better fit. |
What?
Fixes #59028
Why?
To keep the UI distraction free, and to fix the bugs which would prevent sidebars from being closed.
How?
Testing Instructions
Go to site editor
Toggle DFM on
Check the list view toggle does not appear in the header
Go to the site editor
Toggle DFM off
Toggle the block inspector on
Toggle DFM on
Go to post editor
Check the block inspector does not show
Testing Instructions for Keyboard
N/A
Screenshots or screencast
fix-dfm-ui-toggle-bugs.mp4