Skip to content

Commit

Permalink
See #26550. Removes number of pages from toolbar. Aligns some text wi…
Browse files Browse the repository at this point in the history
…th design direction. Still need to force Pagination block to be included by default.
  • Loading branch information
mapk committed Nov 3, 2020
1 parent fb1cc0e commit 9638c1d
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions packages/block-library/src/query/edit/query-toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
ToolbarGroup,
Dropdown,
ToolbarButton,
RangeControl,
BaseControl,
__experimentalNumberControl as NumberControl,
} from '@wordpress/components';
Expand All @@ -29,7 +28,7 @@ export default function QueryToolbar( { query, setQuery } ) {
<BaseControl>
<NumberControl
__unstableInputWidth="60px"
label={ __( 'Items per Page' ) }
label={ __( 'Items per page' ) }
labelPosition="edge"
min={ 1 }
max={ 100 }
Expand All @@ -44,7 +43,7 @@ export default function QueryToolbar( { query, setQuery } ) {
<BaseControl>
<NumberControl
__unstableInputWidth="60px"
label={ __( 'Offset' ) }
label={ __( 'Offset the first item' ) }
labelPosition="edge"
min={ 0 }
max={ 100 }
Expand All @@ -56,17 +55,6 @@ export default function QueryToolbar( { query, setQuery } ) {
isDragEnabled={ false }
/>
</BaseControl>
<BaseControl>
<RangeControl
label={ __( 'Number of Pages' ) }
min={ 1 }
allowReset
value={ query.pages }
onChange={ ( value ) =>
setQuery( { pages: value ?? -1 } )
}
/>
</BaseControl>
</>
) }
/>
Expand Down

0 comments on commit 9638c1d

Please sign in to comment.