Skip to content

Commit

Permalink
Add option to show icon labels. (#24234)
Browse files Browse the repository at this point in the history
* Add option to show icon labels.

* Address review feedback and consolidate

* Move option to general section

* Remove unnecessary dispatch
  • Loading branch information
tellthemachines committed Sep 2, 2020
1 parent 13f8fda commit 1ef7d3b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/edit-post/src/components/options-modal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ export function OptionsModal( { isModalActive, isViewable, closeModal } ) {
'Enable the Most Used Blocks category in the block library'
) }
/>
<EnableFeature
featureName="showIconLabels"
label={ __( 'Show button text labels' ) }
/>
</Section>
<Section title={ __( 'Keyboard options' ) }>
<EnableFeature
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ exports[`OptionsModal should match snapshot when the modal is active 1`] = `
featureName="mostUsedBlocks"
label="Enable the Most Used Blocks category in the block library"
/>
<WithSelect(WithDispatch(BaseOption))
featureName="showIconLabels"
label="Show button text labels"
/>
</Section>
<Section
title="Keyboard options"
Expand Down
1 change: 1 addition & 0 deletions packages/edit-post/src/store/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const PREFERENCES_DEFAULTS = {
fixedToolbar: false,
welcomeGuide: true,
fullscreenMode: true,
showIconLabels: false,
},
hiddenBlockTypes: [],
preferredStyleVariations: {},
Expand Down

0 comments on commit 1ef7d3b

Please sign in to comment.