Skip to content

Commit

Permalink
Improve the Query Loop block display settings labels. (#65524)
Browse files Browse the repository at this point in the history
Co-authored-by: afercia <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: annezazu <[email protected]>
Co-authored-by: jameskoster <[email protected]>
  • Loading branch information
5 people authored Sep 26, 2024
1 parent 8c5a0b6 commit 3679084
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ export default function QueryInspectorControls( props ) {
dropdownMenuProps={ dropdownMenuProps }
>
<ToolsPanelItem
label={ __( 'Items' ) }
label={ __( 'Items per page' ) }
hasValue={ () => perPage > 0 }
>
<PerPageControl
Expand All @@ -341,7 +341,7 @@ export default function QueryInspectorControls( props ) {
/>
</ToolsPanelItem>
<ToolsPanelItem
label={ __( 'Max Pages to Show' ) }
label={ __( 'Max pages to show' ) }
hasValue={ () => pages > 0 }
onDeselect={ () => setQuery( { pages: 0 } ) }
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const PagesControl = ( { pages, onChange } ) => {
return (
<NumberControl
__next40pxDefaultSize
label={ __( 'Max pages' ) }
label={ __( 'Max pages to show' ) }
value={ pages }
min={ 0 }
onChange={ ( newPages ) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const PerPageControl = ( { perPage, offset = 0, onChange } ) => {
<RangeControl
__next40pxDefaultSize
__nextHasNoMarginBottom
label={ __( 'Posts per page' ) }
label={ __( 'Items per page' ) }
min={ MIN_POSTS_PER_PAGE }
max={ MAX_POSTS_PER_PAGE }
onChange={ ( newPerPage ) => {
Expand Down

0 comments on commit 3679084

Please sign in to comment.