-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Social Links: Update Placeholder experience when first inserting Soci…
…al Links (#25941) * Do not hide the icons if the URL is not set This prevents the icons disappearing when losing focus and the URL is not set. This causes is a little unexpected and is not how other placeholders behave, for example the image placeholder still shows without an image set and the block not selected. * Adds placeholder prop to show if no blocks in list The placeholder prop can hold a component that will show in front of the appender if specified and there are no blocks in the block list. Added to help Social Links render a better placeholder experience. * Add placeholder prop to pass forward to BlockList The placeholder prop accepts a component to render if there are no blocks. The component is shown inline with the appender. This was added to support a better experience for Social Links placeholder. * Add placeholder components when no links specified Improve the default experience for social links when no links are specified. This uses the new placeholder prop in InnerBlocks and BlockList. * Fix issues with rebase/refactor * Prettier formatting autofix * Used blurred faux-icons for placeholder * Soften the placeholder colors with some Alphaville * Polish the placeholder state. * Tweak setup state. * Fix margin and color issue. * Add placeholder prop to InnerBlocks README Co-authored-by: jasmussen <[email protected]>
- Loading branch information
Showing
6 changed files
with
57 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters