Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

Commit 2ce3cb3

Browse files
authored
Update modal styling to be more consistent with WP core (#5)
* Updated modal and button styling. * Update readme and screenshot * Update and reorder styles. * Fix device preview downdown position styling * Fix linting error
1 parent d1c7df9 commit 2ce3cb3

File tree

13 files changed

+75
-213
lines changed

13 files changed

+75
-213
lines changed

.wordpress-org/screenshot-1.png

-258 KB
Binary file not shown.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![License](https://img.shields.io/badge/license-GPL--2.0%2B-green.svg)](https://github.com/wpengine/block-pattern-explorer/blob/master/LICENSE.txt)
44

5-
![Block Pattern Explorer](https://user-images.githubusercontent.com/4832319/149374997-381c41de-6608-4997-91df-d72c7e273e2e.png)
5+
![Block Pattern Explorer](https://user-images.githubusercontent.com/4832319/149385531-404f1d6f-4401-4786-9bfe-50b0be212adc.png)
66

77
The Block Pattern Explorer is an experimental WordPress plugin based **heavily** on the work currently being done in [Gutenberg](https://github.com/WordPress/gutenberg).
88

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-primitives'), 'version' => '6e96279ccef5c66a8125afa3f907e9d0');
1+
<?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-primitives'), 'version' => '115b3b0890a69f01d2ca8b9e5921294e');

build/block-pattern-explorer-editor.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/style-block-pattern-explorer-editor-styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

readme.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ Stay up-to-date on the Block Pattern Explorer, and Gutenberg development, using
5454

5555
**Changed**
5656

57-
* Minor updates to modal styling.
57+
* Replaced custom search component with core version.
58+
* Updated modal styling to match core pattern explorer.
5859
* Updated screenshots.
5960

6061
**Fixed**

src/core-components/no-results.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,17 @@ import { Icon, blockDefault } from '@wordpress/icons';
77
function InserterNoResults( { icon, label } ) {
88
return (
99
<div className="block-editor-inserter__no-results">
10-
<Icon
11-
className="block-editor-inserter__no-results-icon"
12-
icon={ icon ? icon : blockDefault }
13-
/>
14-
<p>
15-
{ label
16-
? label
17-
: __( 'No results found.', 'block-pattern-explorer' ) }
18-
</p>
10+
<div>
11+
<Icon
12+
className="block-editor-inserter__no-results-icon"
13+
icon={ icon ? icon : blockDefault }
14+
/>
15+
<p>
16+
{ label
17+
? label
18+
: __( 'No results found.', 'block-pattern-explorer' ) }
19+
</p>
20+
</div>
1921
</div>
2022
);
2123
}

src/core-components/search-control/index.js

Lines changed: 0 additions & 70 deletions
This file was deleted.

src/core-components/search-control/style.scss

Lines changed: 0 additions & 59 deletions
This file was deleted.

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,14 @@ function HeaderToolbarButton() {
151151
icon={ layout }
152152
label={ __( 'Explore Patterns', 'block-pattern-explorer' ) }
153153
onClick={ () => setIsModalOpen( true ) }
154-
disabled={ allCategoryTypes === 'fetching' }
155154
/>
156155
{ isModalOpen && (
157156
<Modal
158157
title={ __( 'Patterns', 'block-pattern-explorer' ) }
159158
closeLabel={ __( 'Close', 'block-pattern-explorer' ) }
160159
onRequestClose={ () => setIsModalOpen( false ) }
161160
className="block-pattern-explorer__modal"
161+
isFullScreen
162162
>
163163
<PatternExplorer
164164
allPatterns={ allPatterns }

0 commit comments

Comments
 (0)