-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Refactor "Display" panel of Navigation block to use ToolsPanel
instead of PanelBody
#67935
Comments
I'd like to work on this issue. Also, there's some discrepancy between the issue title and description. I think the intention was to mention the Display Panel originally, so I would go with refactoring the Display Panel. Thanks! |
A pull request addressing this issue has recently been raised: #68011. I will discontinue my work on this in favor of the existing PR. |
Hey @fabiankaegy, The Navigation block contains multiple non-control items, which is causing layout issues. Additionally, some items have margin-bottom and extra styling applied to improve the layout in PanelBody, but this looks problematic in ToolsPanel. I would like to clarify the best approach before proceeding. Should I write custom CSS to resolve the styling issue? If so, should I create custom CSS classes and apply them here instead? Or should I follow the approach used in Storybook and documentation, which utilizes styled components? It’s worth noting that styled components are used in |
The screenshot appears to be the expected behaviour as the You can see this in the example snippet I left in this comment on a related issue.
This is the approach that has been taken for the panels used by block supports e.g. color, dimensions, typography etc. Ultimately, it might be nice for the For the time being though, I'd suggest staying consistent in approach with the other block support panels. |
Part of #67813
Convert the "Settings" panel of the Navigation block to use the
ToolsPanel
instead ofPanelBody
The text was updated successfully, but these errors were encountered: