Skip to content

Commit

Permalink
prep build 07/29
Browse files Browse the repository at this point in the history
  • Loading branch information
bph committed Jul 29, 2024
2 parents d047567 + 27fbbd8 commit cfd48ae
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/reference-guides/data/data-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ _Parameters_

### receiveThemeSupports

> **Deprecated** since WP 5.9, this is not useful anymore, use the selector direclty.
> **Deprecated** since WP 5.9, this is not useful anymore, use the selector directly.
Returns an action object used in signalling that the index has been received.

Expand Down
2 changes: 1 addition & 1 deletion packages/core-data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ _Parameters_

### receiveThemeSupports

> **Deprecated** since WP 5.9, this is not useful anymore, use the selector direclty.
> **Deprecated** since WP 5.9, this is not useful anymore, use the selector directly.
Returns an action object used in signalling that the index has been received.

Expand Down
2 changes: 1 addition & 1 deletion packages/core-data/src/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export function __experimentalReceiveThemeGlobalStyleVariations(
/**
* Returns an action object used in signalling that the index has been received.
*
* @deprecated since WP 5.9, this is not useful anymore, use the selector direclty.
* @deprecated since WP 5.9, this is not useful anymore, use the selector directly.
*
* @return {Object} Action object.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,30 +67,44 @@ function ScreenTypographyElement( { element } ) {
>
<ToggleGroupControlOption
value="heading"
showTooltip
aria-label={ __( 'All headings' ) }
label={ _x( 'All', 'heading levels' ) }
/>
<ToggleGroupControlOption
value="h1"
showTooltip
aria-label={ __( 'Heading 1' ) }
label={ __( 'H1' ) }
/>
<ToggleGroupControlOption
value="h2"
showTooltip
aria-label={ __( 'Heading 2' ) }
label={ __( 'H2' ) }
/>
<ToggleGroupControlOption
value="h3"
showTooltip
aria-label={ __( 'Heading 3' ) }
label={ __( 'H3' ) }
/>
<ToggleGroupControlOption
value="h4"
showTooltip
aria-label={ __( 'Heading 4' ) }
label={ __( 'H4' ) }
/>
<ToggleGroupControlOption
value="h5"
showTooltip
aria-label={ __( 'Heading 5' ) }
label={ __( 'H5' ) }
/>
<ToggleGroupControlOption
value="h6"
showTooltip
aria-label={ __( 'Heading 6' ) }
label={ __( 'H6' ) }
/>
</ToggleGroupControl>
Expand Down
14 changes: 9 additions & 5 deletions packages/edit-site/src/components/style-book/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,25 +136,29 @@ function getExamples() {
category: 'text',
blocks: [
createBlock( 'core/heading', {
content: __( 'Code Is Poetry' ),
content: __( 'Heading 1' ),
level: 1,
} ),
createBlock( 'core/heading', {
content: __( 'Code Is Poetry' ),
content: __( 'Heading 2' ),
level: 2,
} ),
createBlock( 'core/heading', {
content: __( 'Code Is Poetry' ),
content: __( 'Heading 3' ),
level: 3,
} ),
createBlock( 'core/heading', {
content: __( 'Code Is Poetry' ),
content: __( 'Heading 4' ),
level: 4,
} ),
createBlock( 'core/heading', {
content: __( 'Code Is Poetry' ),
content: __( 'Heading 5' ),
level: 5,
} ),
createBlock( 'core/heading', {
content: __( 'Heading 6' ),
level: 6,
} ),
],
};

Expand Down
6 changes: 4 additions & 2 deletions packages/editor/src/components/commands/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ function useEditorCommandLoader() {
name: 'core/open-shortcut-help',
label: __( 'Keyboard shortcuts' ),
icon: keyboard,
callback: () => {
callback: ( { close } ) => {
close();
openModal( 'editor/keyboard-shortcut-help' );
},
} );
Expand All @@ -108,7 +109,8 @@ function useEditorCommandLoader() {
commands.push( {
name: 'core/open-preferences',
label: __( 'Editor preferences' ),
callback: () => {
callback: ( { close } ) => {
close();
openModal( 'editor/preferences' );
},
} );
Expand Down

0 comments on commit cfd48ae

Please sign in to comment.