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 @@ -36,6 +36,8 @@ export function BlockBindingFieldControl( props: BlockBindingFieldControlProps )
options={ [ { label: 'Select a field', value: '' }, ...options ] }
onChange={ ( field: string ) => updateFieldBinding( target, field ) }
value={ value }
__next40pxDefaultSize
__nextHasNoMarginBottom
/>
);
}
Expand Down
11 changes: 8 additions & 3 deletions src/blocks/remote-data-container/components/panels/DataPanel.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
__experimentalConfirmDialog as ConfirmDialog,
Button,
ButtonGroup,
__experimentalToggleGroupControl as ToggleGroupControl,
PanelBody,
} from '@wordpress/components';
import { useState } from '@wordpress/element';
Expand Down Expand Up @@ -44,7 +44,12 @@ export function DataPanel( props: DataPanelProps ) {

return (
<PanelBody title={ __( 'Remote data management', 'remote-data-blocks' ) }>
<ButtonGroup>
<ToggleGroupControl
className="remote-data-blocks-button-group"
label={ __( '' ) }
__nextHasNoMarginBottom
__next40pxDefaultSize
>
<Button
onClick={ onRefreshRemoteData }
style={ {
Expand Down Expand Up @@ -77,7 +82,7 @@ export function DataPanel( props: DataPanelProps ) {
) }
</ConfirmDialog>
) }
</ButtonGroup>
</ToggleGroupControl>
</PanelBody>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export function OverridesPanel( props: OverridesPanelProps ) {
key={ override.name }
label={ override.display_name || override.name }
onChange={ enabled => updateOverrides( override.name, enabled ) }
__nextHasNoMarginBottom
/>
) ) }
</PanelBody>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { Button, ButtonGroup } from '@wordpress/components';
import {
Button,
__experimentalToggleGroupControl as ToggleGroupControl,
} from '@wordpress/components';
import { __ } from '@wordpress/i18n';

import { DataViewsModal } from '@/blocks/remote-data-container/components/modals/DataViewsModal';
import { InputModal } from '@/blocks/remote-data-container/components/modals/InputModal';
Expand All @@ -16,7 +20,12 @@ export function ItemSelectQueryType( props: ItemSelectQueryTypeProps ) {
} = props;

return (
<ButtonGroup className="remote-data-blocks-button-group">
<ToggleGroupControl
className="remote-data-blocks-button-group"
label={ __( '' ) }
__nextHasNoMarginBottom
__next40pxDefaultSize
>
{ selectors.map( selector => {
const title = selector.name;
const selectorProps = {
Expand Down Expand Up @@ -60,6 +69,6 @@ export function ItemSelectQueryType( props: ItemSelectQueryTypeProps ) {

return null;
} ) }
</ButtonGroup>
</ToggleGroupControl>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export function InputPopover( props: InputPopoverProps ) {
onChange={ ( value: string | undefined ) => onChange( input.slug, value ?? '' ) }
help={ getDataSourceLabels( dataSourceType ).helpText }
suffix={ <Button icon={ keyboardReturn } label={ __( 'Save' ) } type="submit" /> }
__next40pxDefaultSize
/>
</form>
</Popover>
Expand Down
2 changes: 2 additions & 0 deletions src/pattern-editor/components/PatternEditorSettingsPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ export function PatternEditorSettingsPanel() {
options={ [ { label: __( 'Select a block' ), value: '' }, ...options ] }
onChange={ updateBlockTypes }
value={ blockType }
__next40pxDefaultSize
__nextHasNoMarginBottom
/>
</>
</PluginDocumentSettingPanel>
Expand Down