Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ export default function AspectRatioTool( {
value={ displayValue }
options={ options ?? aspectRatioOptions }
onChange={ onChange }
size="__unstable-large"
/>
</ToolsPanelItem>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ export default function HTMLElementControl( {
return (
<VStack spacing={ 2 } className="block-editor-html-element-control">
<SelectControl
__next40pxDefaultSize
label={ __( 'HTML element' ) }
options={ modifiedOptions }
value={ tagName }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ export default function ImageSizeControl( {
options={ imageSizeOptions }
onChange={ onChangeImage }
help={ imageSizeHelp }
size="__unstable-large"
/>
) }
{ isResizable && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export default function ResolutionTool( {
options={ options }
onChange={ onChange }
help={ __( 'Select the size of the source image.' ) }
size="__unstable-large"
/>
</ToolsPanelItem>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ const sizeOptions = [
const renderTestDefaultControlComponent = ( labelComponent, device ) => {
return (
<>
<SelectControl
__next40pxDefaultSize
label={ labelComponent }
options={ sizeOptions }
/>
<SelectControl label={ labelComponent } options={ sizeOptions } />
<p id={ device.id }>
{ device.label } is used here for testing purposes to ensure we
have access to details about the device.
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/archives/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ export default function ArchivesEdit( { attributes, setAttributes, name } ) {
}
>
<SelectControl
__next40pxDefaultSize
label={ __( 'Group by' ) }
options={ [
{ label: __( 'Year' ), value: 'yearly' },
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/audio/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ function AudioEdit( {
}
>
<SelectControl
__next40pxDefaultSize
label={ _x(
'Preload',
'noun; Audio block parameter'
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/categories/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ export default function CategoriesEdit( {
isShownByDefault
>
<SelectControl
__next40pxDefaultSize
label={ __( 'Taxonomy' ) }
options={ taxonomies.map( ( t ) => ( {
label: t.name,
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/file/inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ export default function FileBlockInspector( {
onDeselect={ () => changeLinkDestinationOption( href ) }
>
<SelectControl
__next40pxDefaultSize
label={ __( 'Link to' ) }
value={ textLinkHref }
options={ linkDestinationOptions }
Expand Down
2 changes: 0 additions & 2 deletions packages/block-library/src/form/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ const Edit = ( { attributes, setAttributes, clientId } ) => {
isShownByDefault
>
<SelectControl
__next40pxDefaultSize
label={ __( 'Submissions method' ) }
options={ [
// TODO: Allow plugins to add their own submission methods.
Expand Down Expand Up @@ -173,7 +172,6 @@ const Edit = ( { attributes, setAttributes, clientId } ) => {
{ submissionMethod !== 'email' && (
<InspectorControls group="advanced">
<SelectControl
__next40pxDefaultSize
label={ __( 'Method' ) }
options={ [
{ label: 'Get', value: 'get' },
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/gallery/dynamic-gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ const ORDER_OPTIONS = [
function OrderControl( { orderby, order, onChange } ) {
return (
<SelectControl
__next40pxDefaultSize
label={ __( 'Order by' ) }
value={ `${ orderby }/${ order }` }
options={ ORDER_OPTIONS }
Expand Down
2 changes: 0 additions & 2 deletions packages/block-library/src/gallery/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,6 @@ export default function GalleryEdit( props ) {
options={ imageSizeOptions }
onChange={ updateImagesSize }
hideCancelButton
size="__unstable-large"
/>
</ToolsPanelItem>
) }
Expand Down Expand Up @@ -843,7 +842,6 @@ export default function GalleryEdit( props ) {
isShownByDefault
>
<SelectControl
__next40pxDefaultSize
label={ __( 'Aspect ratio' ) }
help={ __(
'Set a consistent aspect ratio for all images in the gallery.'
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/latest-comments/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ export default function LatestComments( { attributes, setAttributes, name } ) {
isShownByDefault
>
<SelectControl
__next40pxDefaultSize
label={ __( 'Display content' ) }
value={ displayContent }
options={ [
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/list/ordered-list-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ const OrderedListSettings = ( { setAttributes, reversed, start, type } ) => {
}
>
<SelectControl
__next40pxDefaultSize
label={ __( 'List style' ) }
options={ LIST_STYLE_OPTIONS }
value={ type || 'decimal' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@ export default function OverlayTemplatePartSelector( {
>
<FlexBlock>
<SelectControl
__next40pxDefaultSize
label={ __( 'Overlay template' ) }
hideLabelFromVision
aria-labelledby={ headingId }
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/playlist/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,6 @@ const PlaylistEdit = ( {
onDeselect={ () => setAttributes( { order: 'asc' } ) }
>
<SelectControl
__next40pxDefaultSize
label={ __( 'Order' ) }
value={ order }
options={ [
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/post-author/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ function PostAuthorEdit( {
}
>
<SelectControl
__next40pxDefaultSize
label={ __( 'Avatar size' ) }
value={ avatarSize }
options={ avatarSizes }
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/post-navigation-link/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ export default function PostNavigationLinkEdit( {
</InspectorControls>
<InspectorControls group="advanced">
<SelectControl
__next40pxDefaultSize
label={ __( 'Filter by taxonomy' ) }
value={ taxonomy }
options={ getTaxonomyOptions() }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ export default function QueryInspectorControls( props ) {
>
{ postTypesSelectOptions.length > 2 ? (
<SelectControl
__next40pxDefaultSize
options={ postTypesSelectOptions }
value={ postType }
label={ postTypeControlLabel }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ function OrderControl( {
} ) {
return (
<SelectControl
__next40pxDefaultSize
label={ __( 'Order by' ) }
value={ `${ orderBy }/${ order }` }
options={ orderByOptions }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const stickyOptions = [
export default function StickyControl( { value, onChange } ) {
return (
<SelectControl
__next40pxDefaultSize
label={ __( 'Sticky posts' ) }
options={ stickyOptions }
value={ value }
Expand Down
2 changes: 0 additions & 2 deletions packages/block-library/src/search/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,6 @@ export default function SearchEdit( {
>
<SelectControl
value={ buttonPosition }
__next40pxDefaultSize
label={ __( 'Button position' ) }
onChange={ ( value ) => {
setAttributes( {
Expand Down Expand Up @@ -493,7 +492,6 @@ export default function SearchEdit( {
</InspectorControls>
<InspectorControls group="advanced">
<SelectControl
__next40pxDefaultSize
label={ __( 'HTML element' ) }
value={ tagName ?? '' }
options={ [
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/separator/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const HtmlElementControl = ( { tagName, setAttributes } ) => {
'The <div> element should only be used if the block is a design element with no semantic meaning.'
)
}
__next40pxDefaultSize
/>
);
};
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/social-links/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ export function SocialLinksEdit( props ) {
}
>
<SelectControl
__next40pxDefaultSize
label={ __( 'Icon size' ) }
onChange={ ( newSize ) => {
setAttributes( {
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/table-of-contents/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ export default function TableOfContentsEdit( {
isShownByDefault
>
<SelectControl
__next40pxDefaultSize
label={ __( 'Include headings down to level' ) }
value={ maxLevel || '' }
options={ [
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/tag-cloud/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ function TagCloudEdit( { attributes, setAttributes, name } ) {
isShownByDefault
>
<SelectControl
__next40pxDefaultSize
label={ __( 'Taxonomy' ) }
options={ getTaxonomyOptions() }
value={ taxonomy }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ export function TemplatePartAdvancedControls( {
onFocus={ ( event ) => event.target.select() }
/>
<SelectControl
__next40pxDefaultSize
label={ __( 'Area' ) }
labelPosition="top"
options={ areaOptions }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ export function TemplatePartImportControls( { area, setAttributes } ) {
options={ options }
onChange={ ( value ) => setSelectedSidebar( value ) }
disabled={ ! options.length }
__next40pxDefaultSize
/>
</FlexBlock>
<FlexItem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { SelectControl } from '@wordpress/components';
export default function OrderControl( { orderBy, order, onChange, ...props } ) {
return (
<SelectControl
__next40pxDefaultSize
options={ [
{
label: __( 'Name: A → Z' ),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export default function TaxonomyControl( { value, onChange, ...props } ) {

return (
<SelectControl
__next40pxDefaultSize
options={ taxonomyOptions }
value={ value }
onChange={ onChange }
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/video/edit-common-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ const VideoSettings = ( { setAttributes, attributes } ) => {
} }
>
<SelectControl
__next40pxDefaultSize
label={ __( 'Preload' ) }
value={ preload }
onChange={ onChangePreload }
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/video/tracks-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ function SingleTrackEditor( {
</Grid>
<VStack spacing="4">
<SelectControl
__next40pxDefaultSize
className="block-library-video-tracks-editor__single-track-editor-kind-select"
options={ KIND_OPTIONS }
value={ kind }
Expand Down
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
- `FormTokenField` ([#79720](https://github.com/WordPress/gutenberg/pull/79720))
- `RangeControl` ([#79590](https://github.com/WordPress/gutenberg/pull/79590))
- `Radio` ([#79657](https://github.com/WordPress/gutenberg/pull/79657))
- `SelectControl` ([#79797](https://github.com/WordPress/gutenberg/pull/79797))
- `ToggleGroupControl` ([#79656](https://github.com/WordPress/gutenberg/pull/79656))
- `TreeSelect` ([#79550](https://github.com/WordPress/gutenberg/pull/79550))
- `UnitControl` ([#79721](https://github.com/WordPress/gutenberg/pull/79721))
Expand Down
1 change: 0 additions & 1 deletion packages/components/src/custom-gradient-picker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ const GradientTypePicker = ( {
labelPosition="top"
onChange={ handleOnChange }
options={ GRADIENT_OPTIONS }
size="__unstable-large"
value={ hasGradient ? type : undefined }
/>
);
Expand Down
1 change: 0 additions & 1 deletion packages/components/src/date-time/time-picker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ export function TimePicker( {
className="components-datetime__time-field components-datetime__time-field-month" // Unused, for backwards compatibility.
label={ __( 'Month' ) }
hideLabelFromVision
__next40pxDefaultSize
value={ month }
options={ monthOptions }
onChange={ ( value ) => {
Expand Down
1 change: 0 additions & 1 deletion packages/components/src/disabled/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ const Form = () => {
onChange={ setTextAreaValue }
/>
<SelectControl
__next40pxDefaultSize
label="Select Control"
onChange={ () => {} }
options={ [
Expand Down
1 change: 0 additions & 1 deletion packages/components/src/query-controls/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ export function QueryControls( {
{ [
onOrderChange && onOrderByChange && (
<SelectControl
__next40pxDefaultSize
key="query-controls-order-select"
label={ __( 'Order by' ) }
value={
Expand Down
11 changes: 0 additions & 11 deletions packages/components/src/select-control/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ const MySelectControl = () => {
{ label: 'Small', value: '25%' },
] }
onChange={ ( newSize ) => setSize( newSize ) }
__next40pxDefaultSize
/>
);
};
Expand All @@ -114,7 +113,6 @@ Render a user interface to select multiple users from a list.
{ value: 'b', label: 'User B' },
{ value: 'c', label: 'User c' },
] }
__next40pxDefaultSize
/>
```

Expand All @@ -129,7 +127,6 @@ const [ item, setItem ] = useState( '' );
label={ __( 'My dinosaur' ) }
value={ item } // e.g: value = 'a'
onChange={ ( selection ) => { setItem( selection ) } }
__next40pxDefaultSize
>
<optgroup label="Theropods">
<option value="Tyrannosaurus">Tyrannosaurus</option>
Expand Down Expand Up @@ -229,14 +226,6 @@ The style variant of the control.
- Required: No
- Default: `'default'`

### __next40pxDefaultSize

Start opting into the larger default height that will become the default size in a future version.

- Type: `Boolean`
- Required: No
- Default: `false`

## Related components

- To select one option from a set, and you want to show them all the available options at once, use the `Radio` component.
Expand Down
Loading
Loading