Repository navigation
Conversation
Configure the social links block to directly insert a core/social-link block when the appender is clicked, improving the user experience by skipping the block inserter. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
|
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: +27 B (0%) Total Size: 6.84 MB
ℹ️ View Unchanged
|
|
I don't think this is worth exploring. We want users to be able to select the type of social link before its inserted... |
What?
Configure the social links block to directly insert a
core/social-linkblock when the appender is clicked, eliminating an extra step and improving the user experience.Why?
When adding social links to the block, users previously had to interact with the block inserter to select which type of block to insert. Since this block only accepts social-link children, we can streamline the experience by directly inserting them without requiring an extra selection step.
How?
Added
defaultBlock: { name: 'core/social-link' }anddirectInsert: trueproperties to theuseInnerBlocksPropsconfiguration in the social links edit component.Testing Instructions
Testing Instructions for Keyboard