-
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
Edit post: Do not consider sidebars mutually exclusive #61468
Edit post: Do not consider sidebars mutually exclusive #61468
Conversation
Size Change: -52 B (0%) Total Size: 1.74 MB
ℹ️ View Unchanged
|
I wonder what was the original point in having this behaviour in the post editor? |
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. |
I'd guess to have more space for the editor. It was implemented years ago and actually we don't even have the same behavior when opening the list view - it doesn't close the inspector controls sidebar. |
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.
I like that these work the same in the site editor and post editor.
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.
Note: To see the difference, you need a viewport width smaller than 1440px.
haha, this is the same as #60062 and there's an e2e test failure that I didn't understand yet. |
3aafc87
to
ae25350
Compare
Sorry about that @youknowriad! I had missed your PR.. The failure was weird and was probably also related with playwright I think, because there was still visible part of the placeholder to drop.. I decided on a simple workaround for now, since we are going to try the zoom out view for media categories really soon.. |
ae25350
to
49560b9
Compare
This PR impacted several performance metrics. I think we're probably testing with the sidebar open for these metrics so we need to ensure we close the sidebar (or the inserter) before actually testing. |
@@ -659,7 +659,7 @@ test.describe( 'Post Editor Performance', () => { | |||
|
|||
const startTime = performance.now(); | |||
|
|||
await page.getByText( 'Test' ).click(); | |||
await page.getByRole( 'tab', { name: 'Test' } ).click(); |
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.
@ntsekouras I'm curious why you changed this? It's causing the performance tests to fail for 6.5, where this had the role of a button.
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.
I think there were two elements with the test
and we wanted that tab one.
What?
This PR removes the handling in post editor that considers the sidebars mutually exclusive. This is now consistent with site editor.
Testing Instructions