Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export default function BlockEditorPanel( { saveBlocks } ) {

return (
<Panel
className="edit-navigation-menu-editor__block-editor-panel"
header={
<Button isPrimary onClick={ saveBlocks }>
{ __( 'Save navigation' ) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { __ } from '@wordpress/i18n';

export default function NavigationStructurePanel( { blocks, initialOpen } ) {
return (
<Panel>
<Panel className="edit-navigation-menu-editor__navigation-structure-panel">
<PanelBody
title={ __( 'Navigation structure' ) }
initialOpen={ initialOpen }
Expand Down
17 changes: 17 additions & 0 deletions packages/edit-navigation/src/components/menu-editor/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.edit-navigation-menu-editor {
display: grid;
align-items: self-start;
grid-gap: 10px;

@include break-medium {
Expand Down Expand Up @@ -46,3 +47,19 @@
}
}
}

.edit-navigation-menu-editor__navigation-structure-panel {
// IE11 requires the column to be explicity declared.
grid-column: 1;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I always forget about this bit 😅


// Make panels collapsible in IE. The IE analogue of align-items: self-start;.
-ms-grid-row-align: start;
}

.edit-navigation-menu-editor__block-editor-panel {
// IE11 requires the column to be explicity declared.
grid-column: 2;

// Make panels collapsible in IE. The IE analogue of align-items: self-start;.
-ms-grid-row-align: start;
}