Skip to content

Commit

Permalink
Improve consistency of widget block settings (#9389)
Browse files Browse the repository at this point in the history
* Improve option order consistency in widgets

* Use Title Case in Categories block settings

* Use Title Case in Latest Comments block settings

* Categories block: inspector toggles in alphabetic order
  • Loading branch information
ZebulanStanphill authored and gziolo committed Aug 28, 2018
1 parent 32b1f92 commit adf03e2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
10 changes: 5 additions & 5 deletions packages/block-library/src/archives/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ export default function ArchivesEdit( { attributes, setAttributes } ) {
<Fragment>
<InspectorControls>
<PanelBody title={ __( 'Archives Settings' ) }>
<ToggleControl
label={ __( 'Show Post Counts' ) }
checked={ showPostCounts }
onChange={ () => setAttributes( { showPostCounts: ! showPostCounts } ) }
/>
<ToggleControl
label={ __( 'Display as Dropdown' ) }
checked={ displayAsDropdown }
onChange={ () => setAttributes( { displayAsDropdown: ! displayAsDropdown } ) }
/>
<ToggleControl
label={ __( 'Show Post Counts' ) }
checked={ showPostCounts }
onChange={ () => setAttributes( { showPostCounts: ! showPostCounts } ) }
/>
</PanelBody>
</InspectorControls>
<BlockControls>
Expand Down
14 changes: 7 additions & 7 deletions packages/block-library/src/categories/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,20 +146,20 @@ class CategoriesEdit extends Component {
<InspectorControls>
<PanelBody title={ __( 'Categories Settings' ) }>
<ToggleControl
label={ __( 'Display as dropdown' ) }
label={ __( 'Display as Dropdown' ) }
checked={ displayAsDropdown }
onChange={ this.toggleDisplayAsDropdown }
/>
<ToggleControl
label={ __( 'Show post counts' ) }
checked={ showPostCounts }
onChange={ this.toggleShowPostCounts }
/>
<ToggleControl
label={ __( 'Show hierarchy' ) }
label={ __( 'Show Hierarchy' ) }
checked={ showHierarchy }
onChange={ this.toggleShowHierarchy }
/>
<ToggleControl
label={ __( 'Show Post Counts' ) }
checked={ showPostCounts }
onChange={ this.toggleShowPostCounts }
/>
</PanelBody>
</InspectorControls>
);
Expand Down
8 changes: 4 additions & 4 deletions packages/block-library/src/latest-comments/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,22 +81,22 @@ class LatestComments extends Component {
<InspectorControls>
<PanelBody title={ __( 'Latest Comments Settings' ) }>
<ToggleControl
label={ __( 'Display avatar' ) }
label={ __( 'Display Avatar' ) }
checked={ displayAvatar }
onChange={ this.toggleDisplayAvatar }
/>
<ToggleControl
label={ __( 'Display date' ) }
label={ __( 'Display Date' ) }
checked={ displayDate }
onChange={ this.toggleDisplayDate }
/>
<ToggleControl
label={ __( 'Display excerpt' ) }
label={ __( 'Display Excerpt' ) }
checked={ displayExcerpt }
onChange={ this.toggleDisplayExcerpt }
/>
<RangeControl
label={ __( 'Number of comments' ) }
label={ __( 'Number of Comments' ) }
value={ commentsToShow }
onChange={ this.setCommentsToShow }
min={ MIN_COMMENTS }
Expand Down

0 comments on commit adf03e2

Please sign in to comment.