-
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.
Navigation Block: Placeholder empty state (#26947)
* Test placeholder in empty state * Update empty placeholder state with preview * Simplify * Make it more like social links. * Improve things. * Height fixes. Co-authored-by: jasmussen <[email protected]>
- Loading branch information
Showing
4 changed files
with
49 additions
and
26 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
17 changes: 17 additions & 0 deletions
17
packages/block-library/src/navigation/placeholder-preview.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* WordPress dependencies | ||
*/ | ||
import { Icon, search } from '@wordpress/icons'; | ||
|
||
const PlaceholderPreview = () => { | ||
return ( | ||
<div className="wp-block-navigation-placeholder__preview"> | ||
<span className="wp-block-navigation-link"></span> | ||
<span className="wp-block-navigation-link"></span> | ||
<span className="wp-block-navigation-link"></span> | ||
<Icon icon={ search } /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default PlaceholderPreview; |
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