-
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
[Inserter]: Adjust order of theme blocks and reorder inserter items #36719
[Inserter]: Adjust order of theme blocks and reorder inserter items #36719
Conversation
packages/block-editor/src/components/inserter/block-types-tab.js
Outdated
Show resolved
Hide resolved
packages/block-editor/src/components/inserter/block-types-tab.js
Outdated
Show resolved
Hide resolved
Size Change: -29 B (0%) Total Size: 1.1 MB
ℹ️ View Unchanged
|
e7d5ab0
to
cc29be9
Compare
Testing the Gutenberg PR build using https://make.wordpress.org/design/2021/03/03/testing-a-gutenberg-pull-request-pr/ This is what I see. Before:After: |
c10d5ec
to
32a7053
Compare
I took the suggested block order from here: #36869. So it comes to whether we also want the block variations to be displayed right after their source blocks or not. |
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.
Right! |
…36719) * [Inserter]: Prioritize blocks per category in main inserter * change block categories to `theme` * Revert "[Inserter]: Prioritize blocks per category in main inserter" * reorder blocks and make variations appear right after their source block * register Navigation block earlier * reorder blocks
Resolves: #36547
This PR prioritizes some blocks by just changing their registration order (existing behavior).
In addition I made a change to show its block's variations right after their source block. Previously all source blocks were shown and all their variations followed, which doesn't make much sense to me :)
Testing instructions
theme
block category