-
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
[Block Editor]: Better block transforms organization #44072
Conversation
f5e2e93
to
54d4f63
Compare
Size Change: +1.09 kB (0%) Total Size: 1.25 MB
ℹ️ View Unchanged
|
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.
packages/block-editor/src/components/block-switcher/block-transformations-menu.js
Show resolved
Hide resolved
I agree with @jameskoster. Seeing "Quote" as the first transformation option for the Image block doesn't make sense. I think eventually, we would need to handle grouping and priorities on the Transformations API level, and that falls into the future improvement section 😄 |
I think it's weird to see it at all for that one, can we just exclude it? :) |
I'll open a follow up for this. @mtias do you mean exclude the transformation in general or just don't separate it? In general I agree with George that we need to fine tune these in Transformations API. |
I think the "Quote" is a recent addition to the global transformations after v2 - #25892. |
I mean excluding quote from some of those global transformation cases |
What?
Part of: #40208
This PR just prioritizes some 'content' (ex. paragraph -> heading) block transformations in the available transformations list.
Testing Instructions
paragraph, heading, list, quote
transforms, they are prioritized in a separate menu groupScreenshots or screencast