Skip to content

Commit

Permalink
Editor preferences: update order and copy (#40981)
Browse files Browse the repository at this point in the history
* Bring consistency to the site and post editors' preference panes by:
- making the copy the same
- placing common preferences in the same order

* Update snappy shots

* Add full-stop to sentence.
  • Loading branch information
ramonjd authored May 11, 2022
1 parent 0ae80c5 commit 1d44164
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 26 deletions.
20 changes: 11 additions & 9 deletions packages/edit-post/src/components/preferences-modal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,18 @@ export default function EditPostPreferencesModal() {
) }
>
<EnableFeature
featureName="reducedUI"
featureName="focusMode"
help={ __(
'Compacts options and outlines in the toolbar.'
'Highlights the current block and fades other content.'
) }
label={ __( 'Reduce the interface' ) }
label={ __( 'Spotlight mode' ) }
/>
<EnableFeature
featureName="focusMode"
featureName="showIconLabels"
label={ __( 'Show button text labels' ) }
help={ __(
'Highlights the current block and fades other content.'
'Show text instead of icons on buttons.'
) }
label={ __( 'Spotlight mode' ) }
/>
<EnableFeature
featureName="showListViewByDefault"
Expand All @@ -123,9 +123,11 @@ export default function EditPostPreferencesModal() {
label={ __( 'Always open list view' ) }
/>
<EnableFeature
featureName="showIconLabels"
help={ __( 'Shows text instead of icons.' ) }
label={ __( 'Display button labels' ) }
featureName="reducedUI"
help={ __(
'Compacts options and outlines in the toolbar.'
) }
label={ __( 'Reduce the interface' ) }
/>
<EnableFeature
featureName="themeStyles"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,25 @@ exports[`EditPostPreferencesModal should match snapshot when the modal is active
description="Customize options related to the block editor interface and editing flow."
title="Appearance"
>
<WithSelect(WithDispatch(BaseOption))
featureName="reducedUI"
help="Compacts options and outlines in the toolbar."
label="Reduce the interface"
/>
<WithSelect(WithDispatch(BaseOption))
featureName="focusMode"
help="Highlights the current block and fades other content."
label="Spotlight mode"
/>
<WithSelect(WithDispatch(BaseOption))
featureName="showIconLabels"
help="Show text instead of icons on buttons."
label="Show button text labels"
/>
<WithSelect(WithDispatch(BaseOption))
featureName="showListViewByDefault"
help="Opens the block list view sidebar by default."
label="Always open list view"
/>
<WithSelect(WithDispatch(BaseOption))
featureName="showIconLabels"
help="Shows text instead of icons."
label="Display button labels"
featureName="reducedUI"
help="Compacts options and outlines in the toolbar."
label="Reduce the interface"
/>
<WithSelect(WithDispatch(BaseOption))
featureName="themeStyles"
Expand Down Expand Up @@ -153,25 +153,25 @@ exports[`EditPostPreferencesModal should match snapshot when the modal is active
description="Customize options related to the block editor interface and editing flow."
title="Appearance"
>
<WithSelect(WithDispatch(BaseOption))
featureName="reducedUI"
help="Compacts options and outlines in the toolbar."
label="Reduce the interface"
/>
<WithSelect(WithDispatch(BaseOption))
featureName="focusMode"
help="Highlights the current block and fades other content."
label="Spotlight mode"
/>
<WithSelect(WithDispatch(BaseOption))
featureName="showIconLabels"
help="Show text instead of icons on buttons."
label="Show button text labels"
/>
<WithSelect(WithDispatch(BaseOption))
featureName="showListViewByDefault"
help="Opens the block list view sidebar by default."
label="Always open list view"
/>
<WithSelect(WithDispatch(BaseOption))
featureName="showIconLabels"
help="Shows text instead of icons."
label="Display button labels"
featureName="reducedUI"
help="Compacts options and outlines in the toolbar."
label="Reduce the interface"
/>
<WithSelect(WithDispatch(BaseOption))
featureName="themeStyles"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function EditSitePreferencesModal( {
<EnableFeature
featureName="showIconLabels"
label={ __( 'Show button text labels' ) }
help={ __( 'Show text instead of icons on buttons' ) }
help={ __( 'Show text instead of icons on buttons.' ) }
/>
<EnableFeature
featureName="showListViewByDefault"
Expand Down

0 comments on commit 1d44164

Please sign in to comment.