Skip to content

Commit 64e3254

Browse files
juanfrat-hamanojasmussenkarmatosedjameskoster
authored
Starter content: Change alignment and copy (#72829)
* Replace toggle with checkbox for the starter patterns modal action, adjust height. * Update preference help text to avoid redundancy. Co-authored-by: juanfra <[email protected]> Co-authored-by: t-hamano <[email protected]> Co-authored-by: jasmussen <[email protected]> Co-authored-by: karmatosed <[email protected]> Co-authored-by: jameskoster <[email protected]> Co-authored-by: Mamaduka <[email protected]> Co-authored-by: hanneslsm <[email protected]>
1 parent 91f2a2a commit 64e3254

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

packages/editor/src/components/preferences-modal/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function PreferencesModalContents( { extraSections = {} } ) {
116116
scope="core"
117117
featureName="enableChoosePatternModal"
118118
help={ __(
119-
'Shows starter patterns when creating a new page.'
119+
'Pick from starter content when creating a new page.'
120120
) }
121121
label={ __( 'Show starter patterns' ) }
122122
/>

packages/editor/src/components/start-page-options/index.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* WordPress dependencies
33
*/
4-
import { Flex, FlexItem, Modal, ToggleControl } from '@wordpress/components';
4+
import { Flex, FlexItem, Modal, CheckboxControl } from '@wordpress/components';
55
import { __ } from '@wordpress/i18n';
66
import { useState, useMemo, useEffect } from '@wordpress/element';
77
import {
@@ -119,16 +119,15 @@ function StartPageOptionsModal( { onClose } ) {
119119
</div>
120120
<Flex
121121
className="editor-start-page-options__modal__actions"
122-
justify="flex-end"
122+
justify="flex-start"
123123
expanded={ false }
124124
>
125125
<FlexItem>
126-
<ToggleControl
126+
<CheckboxControl
127127
__nextHasNoMarginBottom
128128
checked={ showStartPatterns }
129-
label={ __( 'Show starter patterns' ) }
130-
help={ __(
131-
'Shows starter patterns when creating a new page.'
129+
label={ __(
130+
'Always show starter patterns for new pages'
132131
) }
133132
onChange={ ( newValue ) => {
134133
setShowStartPatterns( newValue );

packages/editor/src/components/start-page-options/style.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@use "@wordpress/base-styles/variables" as *;
44
@use "@wordpress/base-styles/z-index" as *;
55

6-
$actions-height: 92px;
6+
$actions-height: 72px;
77

88
.editor-start-page-options__modal {
99
.editor-start-page-options__modal__actions {

0 commit comments

Comments
 (0)