-
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 panel collapsing in navigation page #21633
Conversation
Size Change: +98 B (0%) Total Size: 840 kB
ℹ️ View Unchanged
|
I'd give |
@tellthemachines Nice solution! I managed to get it working on IE11 as well: The only thing missing is the grid gap between the columns, which I don't think is supported in the old IE syntax. |
This reverts commit 25b0026612be3063a2d7ed208f7dd1f0cda25b03.
d0b412f
to
5a769e6
Compare
Hmm, autoprefixer should be smart enough to handle that. Either we're not on the latest version or perhaps we don't have advanced grid support turned on; either way, sounds like something fixable (in a separate issue). |
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.
Looks good!
|
||
.edit-navigation-menu-editor__navigation-structure-panel { | ||
// IE11 requires the column to be explicity declared. | ||
grid-column: 1; |
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.
Thanks, I always forget about this bit 😅
Oops, this accidentally broke things on mobile. #21638 makes good. |
Description
Currently on the navigation page (at desktop breakpoints), when collapsing a panel, instead of the panel completely collapsing, only the content collapses and the panel itself remains the height of its grid row.
The reason for this is that the
Panel
components are currently displayed as grid columns, and in the grid the columns are always the same height, so if there's content in the right hand panel, the left hand panel assumes the same height.This PR fixes things by wrapping the panels in a
<div>
. Thesediv
s become the grid columns allowing thePanels
to collapse if needed.There might be a better way to do this without resorting to extra
div
s, I'm open to ideas 😄 .How has this been tested?
Screenshots
Before
After
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist: