Skip to content
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: Admin menu collapses for 960px width but editor doesn't #19970

Merged
merged 1 commit into from
Jan 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/base-styles/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@
left: $admin-sidebar-width-collapsed;
}

@include break-large() {
@media (min-width: #{ ($break-large + 1) }) {
left: $admin-sidebar-width;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
getEditedPostContent,
insertBlock,
switchEditorModeTo,
pressKeyWithModifier,
} from '@wordpress/e2e-test-utils';

describe( 'InnerBlocks Template Sync', () => {
Expand Down Expand Up @@ -37,6 +38,8 @@ describe( 'InnerBlocks Template Sync', () => {
}, paragraphToAdd, blockSlug );
// Press "Enter" inside the Code Editor to fire the `onChange` event for the new value.
await page.click( '.editor-post-text-editor' );
await pressKeyWithModifier( 'primary', 'A' );
await page.keyboard.press( 'ArrowRight' );
await page.keyboard.press( 'Enter' );
await switchEditorModeTo( 'Visual' );
};
Expand Down