Skip to content

Commit

Permalink
Sidebar to panel term changes
Browse files Browse the repository at this point in the history
  • Loading branch information
n2erjo00 committed May 21, 2024
1 parent 55f9709 commit ab38cf2
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function useCommonCommands() {

useCommand( {
name: 'core/open-settings-sidebar',
label: __( 'Toggle settings sidebar' ),
label: __( 'Toggle settings panel' ),
icon: isRTL() ? drawerLeft : drawerRight,
callback: ( { close } ) => {
close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function useEditUICommands() {

commands.push( {
name: 'core/open-settings-sidebar',
label: __( 'Toggle settings sidebar' ),
label: __( 'Toggle settings panel' ),
icon: isRTL() ? drawerLeft : drawerRight,
callback: ( { close } ) => {
close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function EditorKeyboardShortcutsRegister() {
registerShortcut( {
name: 'core/editor/toggle-sidebar',
category: 'global',
description: __( 'Show or hide the Settings sidebar.' ),
description: __( 'Show or hide the Settings panel.' ),
keyCombination: {
modifier: 'primaryShift',
character: ',',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import { ComplementaryAreaMoreMenuItem } from '@wordpress/interface';
* return React.createElement(
* PluginSidebarMoreMenuItem,
* {
* target: 'my-sidebar',
* target: 'my-panel',
* icon: moreIcon,
* },
* __( 'My sidebar title' )
* __( 'My panel title' )
* )
* }
* ```
Expand All @@ -40,10 +40,10 @@ import { ComplementaryAreaMoreMenuItem } from '@wordpress/interface';
*
* const MySidebarMoreMenuItem = () => (
* <PluginSidebarMoreMenuItem
* target="my-sidebar"
* target="my-panel"
* icon={ more }
* >
* { __( 'My sidebar title' ) }
* { __( 'My panel title' ) }
* </PluginSidebarMoreMenuItem>
* );
* ```
Expand Down
12 changes: 6 additions & 6 deletions packages/editor/src/components/plugin-sidebar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ import { store as editorStore } from '../../store';
* return el(
* PluginSidebar,
* {
* name: 'my-sidebar',
* title: 'My sidebar title',
* name: 'my-panel',
* title: 'My panel title',
* icon: moreIcon,
* },
* el(
* PanelBody,
* {},
* __( 'My sidebar content' )
* __( 'My panel content' )
* )
* );
* }
Expand All @@ -65,12 +65,12 @@ import { store as editorStore } from '../../store';
*
* const MyPluginSidebar = () => (
* <PluginSidebar
* name="my-sidebar"
* title="My sidebar title"
* name="my-panel"
* title="My panel title"
* icon={ more }
* >
* <PanelBody>
* { __( 'My sidebar content' ) }
* { __( 'My panel content' ) }
* </PanelBody>
* </PluginSidebar>
* );
Expand Down
2 changes: 1 addition & 1 deletion post-content.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
<!-- /wp:gallery -->

<!-- wp:paragraph -->
<p><?php _e( 'You can change the amount of columns in your galleries by dragging a slider in the block inspector in the sidebar.', 'gutenberg' ); ?></p>
<p><?php _e( 'You can change the amount of columns in your galleries by dragging a slider in the block settings panel.', 'gutenberg' ); ?></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":2} -->
Expand Down

0 comments on commit ab38cf2

Please sign in to comment.