-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the block settings menu to the block toolbar (#9572)
* Move the block settings menu to the block toolbar * Fix the multiselection block settings menu * Simplify styling of block toolbars * Focus toolbar on multi selection * Open menu to the right * Fix unit tests * Fix e2e tests * Refactor block keyboard shortcuts to fix e2e tests * Fix the block inspector's styling * Fix small error causing the UI go go wild :P * Restore the block settings menu for invalid blocks * Restore the block toolbar for the classic block * Try fix for ellipsis button on Classic.
- Loading branch information
1 parent
dfc5749
commit 2065011
Showing
26 changed files
with
524 additions
and
531 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
96 changes: 46 additions & 50 deletions
96
edit-post/components/sidebar/plugin-post-publish-panel/test/__snapshots__/index.js.snap
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 |
---|---|---|
@@ -1,68 +1,64 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`PluginPostPublishPanel renders fill properly 1`] = ` | ||
<div | ||
role="presentation" | ||
<PanelBody | ||
className="my-plugin-post-publish-panel" | ||
initialOpen={true} | ||
key="1---0/.0" | ||
title="My panel title" | ||
> | ||
<PanelBody | ||
className="my-plugin-post-publish-panel" | ||
initialOpen={true} | ||
key="1---0/.0" | ||
title="My panel title" | ||
<div | ||
className="components-panel__body my-plugin-post-publish-panel is-opened" | ||
> | ||
<div | ||
className="components-panel__body my-plugin-post-publish-panel is-opened" | ||
<h2 | ||
className="components-panel__body-title" | ||
> | ||
<h2 | ||
className="components-panel__body-title" | ||
<Button | ||
aria-expanded={true} | ||
className="components-panel__body-toggle" | ||
onClick={[Function]} | ||
> | ||
<Button | ||
<button | ||
aria-expanded={true} | ||
className="components-panel__body-toggle" | ||
className="components-button components-panel__body-toggle" | ||
onClick={[Function]} | ||
type="button" | ||
> | ||
<button | ||
aria-expanded={true} | ||
className="components-button components-panel__body-toggle" | ||
onClick={[Function]} | ||
type="button" | ||
<AccessibleSVG | ||
className="components-panel__arrow" | ||
height="24px" | ||
viewBox="0 0 24 24" | ||
width="24px" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<AccessibleSVG | ||
<svg | ||
aria-hidden="true" | ||
className="components-panel__arrow" | ||
focusable="false" | ||
height="24px" | ||
role="img" | ||
viewBox="0 0 24 24" | ||
width="24px" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<svg | ||
aria-hidden="true" | ||
className="components-panel__arrow" | ||
focusable="false" | ||
height="24px" | ||
role="img" | ||
viewBox="0 0 24 24" | ||
width="24px" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<g> | ||
<path | ||
d="M0,0h24v24H0V0z" | ||
fill="none" | ||
/> | ||
</g> | ||
<g> | ||
<path | ||
d="M12,8l-6,6l1.41,1.41L12,10.83l4.59,4.58L18,14L12,8z" | ||
/> | ||
</g> | ||
</svg> | ||
</AccessibleSVG> | ||
My panel title | ||
</button> | ||
</Button> | ||
</h2> | ||
My panel content | ||
</div> | ||
</PanelBody> | ||
</div> | ||
<g> | ||
<path | ||
d="M0,0h24v24H0V0z" | ||
fill="none" | ||
/> | ||
</g> | ||
<g> | ||
<path | ||
d="M12,8l-6,6l1.41,1.41L12,10.83l4.59,4.58L18,14L12,8z" | ||
/> | ||
</g> | ||
</svg> | ||
</AccessibleSVG> | ||
My panel title | ||
</button> | ||
</Button> | ||
</h2> | ||
My panel content | ||
</div> | ||
</PanelBody> | ||
`; |
20 changes: 8 additions & 12 deletions
20
edit-post/components/sidebar/plugin-post-status-info/test/__snapshots__/index.js.snap
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 |
---|---|---|
@@ -1,18 +1,14 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`PluginPostStatusInfo renders fill properly 1`] = ` | ||
<div | ||
role="presentation" | ||
<PanelRow | ||
className="my-plugin-post-status-info" | ||
key="1---0/.0" | ||
> | ||
<PanelRow | ||
className="my-plugin-post-status-info" | ||
key="1---0/.0" | ||
<div | ||
className="components-panel__row my-plugin-post-status-info" | ||
> | ||
<div | ||
className="components-panel__row my-plugin-post-status-info" | ||
> | ||
My plugin post status info | ||
</div> | ||
</PanelRow> | ||
</div> | ||
My plugin post status info | ||
</div> | ||
</PanelRow> | ||
`; |
Oops, something went wrong.